PDA

View Full Version : How to remove widgets from QSplitter?



mcb
23rd July 2009, 00:56
I can add widgets with QSplitter::addWidget(), and I can add/move widgets with QSplitter::insertWidget(), but is it possible to remove a widget - short of deleting and replacing the QSplitter?

Thanks.

jpn
23rd July 2009, 01:23
Have you tried reparenting the widget you want to remove?

mcb
23rd July 2009, 06:10
I tried it and it works. Thanks.