Quote Originally Posted by jpn View Post
Could you consider putting the group boxes into a QStackedWidget? QStackedWidget would take the size hint of both group boxes into consideration.
But it won't shrink the top level widget by itself. Layouts won't help with that as the dialog is not part of any layout.