PDA

View Full Version : Is there something like 'pack' for 'auto-adjust' a window to fit the components?



tonnot
8th February 2011, 09:45
I have a dialog with a Group-Box with variable height. I'd want to use some function to 'pack' the form, that is to say, to 'auto-calculate' the height and width of all the components and then set the height and the width of the window.
Have to do this manually ?
Thanks

franz
8th February 2011, 09:59
You mean layouts (http://doc.trolltech.com/latest/qlayout.html)?

Lesiok
8th February 2011, 11:49
Look at QWidget::adjustSize