I have a qwidget (we will call it qwidget1) inside the layout of another qwidget (let's call it qwidget2), I want to delete everything that is in qwidget2 layout: I would like to clear the layout so that there is nothing else in it. what can i do so far, completely remove qwidget2 by doing:
void QCell::deleteMyChildren(){ delete this; }
but it removes qwidget2 itself .. this is not what I want. Please help me remove the elements inside the layout.
qt layout qwidget
Ben Jan 29 '13 at 14:18 2013-01-29 14:18
source share