Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
5.15.0
-
None
Description
Having a big list of QDockWidgets and adding them programatically to the QMainWindow results in extending the QMainWindows minimum size over the maximum size.
In that case either the last widgets should be force stacked or a scrollbar should appear.
I don't even know if this is currently possible by adding some custom event handlers, since the control over the Docking Areas is very limited.
How to reproduce:
- Create a Qt Gui Application
- Create enough [empty with spacers] widgets to extend the size of the screen
- Add those to the QMainWindow programatically
Outcome:
A warning in the console appears:
`Qt.Warning: QWindowsWindow::setGeometry: Unable to set geometry 1920x1256+0+23 (frame: 1936x1295-8-8) on QWidgetWindow/"MainWindowWindow" on "\\.\DISPLAY1". Resulting geometry: 1920x1137+0+23 (frame: 1936x1176-8-8) margins: 8, 31, 8, 8 minimum size: 1201x1256 MINMAX`
Also the Dock widgets can't be shown, sometimes they are interleaving or visually stacked (not stacked in a stacked widget).
Expectation:
I would expect the area, in which the QDockWidgets are placed, is a QScrollArea, which then shows scrollbars.
Alternatively, enogh widgets should be stacked so the minimum size does not violate the screens boundaries.