Purpose of sizeHint() and minimumSizeHint() ? (solved)
-
sizeHint : const QSize
This property holds the recommended size for the widget.minimumSizeHint : const QSize
This property holds the recommended minimum size for the widget. -
hi
Both are used
When the widget is created the system uses sizeHint for how to big to make at start.
When the widget is resized ( by layout, by user dragging) the minimumSizeHint is used to
make sure it never becomes smaller than that.