You can use QWidget::minimumSizeHint() to return the minimum recommended size for your window and QWidget::sizeHint() to return the recommended size.
These properties are used by QLayout's to take care of the geometry of the widgets. QLayout won't resize widgets lesser than it's min size hint.
Also you can control how the widgets should behave in various circumstances(eg when there is extra space ) by using QSizePolicy.
See also QWidget::sizePolicy
Bookmarks