views:

211

answers:

1

I'd like to create an application's main window in qt4 designer.

When I add a layout element to the centralwidget, that element stays in the middle of the window and does not move when the window is resized. How can I make it "fill" the whole area (and resize its children properly)? All children widgets of my layout are expanding properly.

+2  A: 

After you add the element, select the main window, and click one of the layouts (from the toolbar), so that it gets applied to the main window's children.

codelogic
Toolbar == the real top one, not the one on the left, which is the widget panel by default. <- this took me some time to discover :)
viraptor