PDA

View Full Version : Remove widgets in a Layout



jayreddy
4th December 2009, 06:54
Hi all..

Can I know how to remove all widgets within a layout and hide them so that i can add other widgets in the same place dynamically?

Thank You

lyuts
4th December 2009, 07:41
Take a look at QStackedWidget (http://doc.trolltech.com/4.5/qstackedwidget.html#details).

mattc
4th December 2009, 10:21
See also the docs for QLayout::takeAt():

http://doc.trolltech.com/4.6/qlayout.html#takeAt