Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-13515

Show / hide the widget of a QMdiSubWindow does not show / hide the sub window

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P4: Low
    • Some future release
    • 4.6.3
    • GUI: Workspace
    • None
    • Win32, VS2008

    Description

      In order to show / hide the sub window containing a custom widget, we have to subclass the slots show() / hide() in our widget and explicitly call the sub window slot.
      In Qt3, this was not neccesary. I think this is a bug in Qt4. When you pass the window flag Qt::SubWindow in QMdiArea::addSubWindow(), it should be implicit that show / hide slots of the widget connect to the sub window show / hide slots.

      Example in my widget::hide()
      QMdiSubWindow subWin = dynamic_cast<QMdiSubWindow>(this->parentWidget());
      if ( subWin )
      subWin->hide();
      else
      hide();

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            ludovic@norsar.no Ludovic Pochon-Guerin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes