PDA

View Full Version : Is it possible to reset the layout's height to original one?



picokuo
6th January 2011, 08:59
Hi, Sir:
I add some buttons in a dumy widget. Then, include another button (button1) and this widget into a VBoxLayout. In constructor, I hide the widget, and connect the button with widget to be able to show these buttons after pressing the button1.

Things like below
___________________
Button1 ---> Button1
.................. Button2
.................. Button3
___________________

But, after that, the height of layout cannot be back to original height.
Is there any way to reset the just-fit layout height???

Thanks a lot.

BR,
Pico

wysota
6th January 2011, 11:43
You mean something like this -- Expanding dialog?

picokuo
6th January 2011, 12:56
Hi, Sir:
yes... I would like to have expanding buttons...

Thanks