Hi
I have some frames inside a QMainWindow central widget.
I want the window to auto resize as i show/hide the frames.
How do i manage this? I tried sizepolicy but didn't work.
Thanks
Printable View
Hi
I have some frames inside a QMainWindow central widget.
I want the window to auto resize as i show/hide the frames.
How do i manage this? I tried sizepolicy but didn't work.
Thanks
not sure but .. u can try resizeEvent() ..
I use this to resize widgets:
Check it out here:
http://doc.trolltech.com/4.3/qwidget.html#size-prop
Set a proper layout to your central widget that contains the frames.
It's something like this: http://www.box.net/shared/57oakuculm
It grows as i show new frames ... but it does not shrink back!
What properties showld i be looking for?!