View Full Version : resize a QMainWindow
graciano
14th August 2009, 17:58
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
wagmare
15th August 2009, 08:17
not sure but .. u can try resizeEvent() ..
tommy
16th August 2009, 18:58
I use this to resize widgets:
QWidget::resize();
Check it out here:
http://doc.trolltech.com/4.3/qwidget.html#size-prop
axeljaeger
18th August 2009, 23:29
Set a proper layout to your central widget that contains the frames.
graciano
19th August 2009, 17:45
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?!
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.