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

QMdiArea subwindow not resizing correctly when multiple main windows using it as central widget exist

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 4.8.7, 5.3.1
    • 4.8.4, 5.0.2
    • Widgets: Main Window
    • None
    • Windows 7, Ubuntu12, Mac OS X
    • 9e2c4bc67f30eb1e8d776afe3a092d5994aaab38 (stable, 6.5.2014, 5.3.1). bdcb3a821258f3d5f01e7d9b162b24c1c64236e9. (4.8, 6.5.2014, 4.8.7)

    Description

      In an application that has multiple main windows that have a QMdiArea as a central widget the subwindow is not resized correctly if a dock widget is hidden. With the example application (attached) the subwindow in the other main window is resized correctly but in the other it’s not. The difference is shown in the picture attached.

      Here are the steps to reproduce the issue with the attached application:

      • run the application -> two main windows are shown
      • toggle the visibility of the main window that is labeled “Window 2” using the toolbar button (monkey) -> the sub window should grow to fill the space available
      • toggle the visibility of the main window that is labeled “Window 1” using the toolbar button -> the sub window is resized correctly to fill the space available

      With qtbug31448.zip :

      • Launch example, resize Window 1. Note subwindow is not resized
      • Resize Window 2. Note subwindow is resized
      • Toggle visibility of dock in any window, note funny resizing behaviour of the other windows (pass number > 2 on cmd line)

      Attachments

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

        Activity

          People

            kleint Friedemann Kleint
            qtcomsupport Qt Support
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes