Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
5.11.0
-
None
-
I tested this under Windows 10, with Qt 5.10.1 with MinGW32 compiler. However, it looks from the code that the issue is independent of environment.
Description
Expected behaviour:
- When I resize a docked QDockWindow manually, and afterwards resize the QMainWindow, I expect the size of the QDockWindow to remain.
Real behaviour:
- I have resized the docked QDockWindow manually. When I afterwards resize the QMainWindow, the QDockWindow's size jumps back to its original size.
- However, once I drag any QDockWindow out to be floating, this bug ceases to occur.
It seems to me, that commit https://github.com/qt/qtbase/commit/60be2fb6a13315f074c3c0b7793c38632f291e8b introduced this bug, because the internal variable QDockAreaLayout::fallbackToSizeHint gets set to false only in the QMainWindowLayout::hover method (which gets called e.g. on moving a floating window), but not on startSeparatorMove (which gets called once the user resizes a docked QDockWindow manually).
To fix this, I think the function QMainWindowLayoutSeparatorHelper<Layout>::startSeparatorMove (or endSeparatorMove) must be modified to set fallbackToSizeHint = false.
Attachments
Issue Links
- is duplicated by
-
QTBUG-70571 [Reg 5.9.6->5.11.1]QDockWidget resizes if main window size is changed
- Closed