Thanks for reply.
I open the Object Inspector and set all the Widget as a central Widget.
But when I maximized my window they are not maximized.
Thanks for reply.
I open the Object Inspector and set all the Widget as a central Widget.
But when I maximized my window they are not maximized.
ok,
when working with designer forget about the QMainWindow::setCentralWidget().
1. put all things in the mainwidget you want.
2. maybe arrange the items with layouts
3. click on a free mainwidget pice to activate it, or select the item in the top of the object inspector
4. then choose a layout on the designer toolbar and click it.
And now if you resize the mainwindow the content also will be resized...
Lykurg
Thanks.
now the size is maximized.
But when I set the layouts then actually if I set the Grid layout then it is not taking the widget size and position as given by me It takes the iteself.
and in other layouts it is not setting them as I want.
Bookmarks