Details
-
Suggestion
-
Resolution: Out of scope
-
P2: Important
-
4.1.2
-
None
Description
There is already a task requesting a orientationChanged signal in QDockWidget (101492) but there are additional problems concerning minimumSizeHints.
If you have a widget that has 5 lineedits which should be lined up horizontally when the dockWidget is docked horizontally (top or bottom) and vertically if the dockWidget is docked vertically you'll have problems docking it. The QMainWindowLayout will think the widget needs a certain size to but this size is valid only if docked in the same orientation.
A virtual functions in QDockWidget could maybe solve this problem:
virtual QSize sizeHintForDockArea(Qt::DockArea area) const.