문제

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.

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top