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

QMdiSubWindow::show() does not show the dialog widget

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 4.8.0
    • None
    • Tested with Qt4.8.0 + Windows 7
      Ubuntu 12.04 64-bit

    Description

      The attached example application (modified version of the $QTDIR/examples/mainwindows/mdi) demonstrates the use case:

      • launch the application. On the construction phase a custom dialog is added to QMdiSubWindow and
        mdi sub window is displayed (MainWindow::MainWindow()):
          MyDialog* child = new MyDialog;
          child->setWindowFlags(Qt::Widget);
      
          m_subWindow = new QMdiSubWindow();
          m_subWindow->setWidget(child);
          mdiArea->addSubWindow(m_subWindow);
      
          m_subWindow->show();
      
      
      • close the MDI sub window by clicking top-right corner 'x'
      • select 'File' - 'Show Dlg MDI' which calls:
      m_subWindow->show();
      

      --> error: MDI sub window is shown but the content is empty (screen capture attached) i.e. the dialog widget is not displayed on MDI
      sub window.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            qtcomsupport Qt Support
            Votes:
            3 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes