Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.11.1
-
Windows 10
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