Details
-
Suggestion
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
5.9.6, 5.12.0
-
MacOS 10.14
XCode 10.1
Description
When a widget inside a layout has sizePolicy set to Fixed but also has set a minimumSize which is smaller than the size hint, the widget behaves like having the size policy set to Maximum, meaning the widget can be shrunk down from the size hint to the minimum size.
I guess analogous behavior can be observed with maximumSize.
Expected Behavior
The widget has a size fixed to the size hint unless the size hint is smaller than the minimumSize in which case the size is fixed to the minimumSize.
Suggestion
Either change the behavior as described above (see expected behavior) or document that having a minimum or maximum size makes the widget behave different from its sizePolicy.