You mean the mainwindow layout?
Each level must have a layout installed if you want the whole widget tree to be resized whenever the window is resized.
J-P Nurmi
So I need to set a layout for each level...Are the layouts should be the same type?(i.e. horizantal layout)
It's up to you how you want to lay out the child widgets.![]()
J-P Nurmi
OkI just want to be sure.
Finally, changing the size policy(i.e. preffered to fixed or making hor.strecth = 1) of a widget could effect this resizing issue?
QSizePolicy::Fixed means that
Originally Posted by docs
J-P Nurmi
That was a good answer. Thanks a lot.
Cheers.
I actually tried the following way;
I set the widget size policy to expanding, but I didn't give a lay out for each level. So it seems that where I screwed it up.
Bookmarks