PDA

View Full Version : Remove widgets from a QSplitter



blukske
14th July 2006, 09:37
Simple question; is it possible to dynamically remove widgets from a QSplitter instance?

high_flyer
14th July 2006, 10:38
Try this (I never tried it):


QWidget *temp = mySplitter->widget(index);
delete temp;


If this doesnt work, QWidget::hide() should (but that does not delete the widget, it stays in memory)