Just select the widget of the main window in the form editor and tell it so that its children break horizontally (Ctrl-1) or vertically (Ctrl-2). They are under the "Form" menu.
(If you are using Qt Creator, use Ctrl-1, Ctrl-2, or under the menu under Tools β Form Editor.)
If you change your mind later, you can break the layout and change the order of things.
"Extending to fill available space" is a general rule in Qt (as with most other toolkits). It might be worth reading QLayout and layout control in general .
Mikesname
source share