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

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

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:

                There are no open Gerrit changes