[Qt-interest] remove QSplitter children / disable splitterdragging.

Ben Swerts benswerts at telenet.be
Wed Oct 28 21:51:08 CET 2009


> > I didn't follow this thread from the beginning but you can just delete
> the
> > required widget in the splitter, i.e. 'widget->deleteLater()' or
> similar.
> >
> 
> Well, yes, but I don't want to delete the widget - I'll need it again.
> It seems silly to have to continually delete and re-add the widget.

In that case a simple setParent(0) call on the widget removes it from the
splitter without deleting it.

Greets,


	Ben




More information about the Qt-interest-old mailing list