You can set and use after the maximumSize of a widget using maximumSize() and setMaximumSize().