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

QMdiArea Shrinks Subwindows on Cascade

    XMLWordPrintable

Details

    • Windows

    Description

      When calling the cascade method of QMdiArea, all of the subwindows are shrunken to their smallest possible size. This behavior is not ideal as the native Win32 MDI provided by Microsoft toolkits do not behave this way. This issue is present in the MDI sample that comes with Qt.

      I believe this may also be a regression as I am able to find multiple examples of the subwindows keeping their size after cascade in older Qt documentation. Even in the new Qt documentation, which has an outdated image, it shows empty subwindows being cascaded without being shrunk to 0 size. When I attempt this on Windows 10 the cascade will shrink the subwindows to have no area.
      https://doc.qt.io/archives/qq/qq08-mdi-layouts.html
      http://doc.qt.io/qt-5/qmdiarea.html

      I found a StackOverflow post where another person was facing the same issue.
      https://stackoverflow.com/questions/23155039/qmdiarea-subwindow-size-after-cascadesubwindows

      The ideal behavior would be that the size of the subwindow after the cascade could be controlled in some way, by for example being able to set the initial size of the subwindow.
      The Ideal Behavior

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            RobertBColton Robert B. Colton
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes