Sorry for the late reply...
The problem is that I want to use 2 separate, different forms in the same class.
I can't create a "wrapper" widget, is there any way of excluding some objects from the children() list? If I use qDeleteAll(children()) then I want to prevent some of the objects from getting deleted, how would I do that? Can I treat it as a regular QList and use the negative (-) operator to remove certain objects? How would I do that? Would this work:
...
QObjectList childrenList = children();
childrenList.removeAt(indexOf(myPermanentObject));
childrenList.removeAt(indexOf(myPermanentObject2));
...
qDeleteAll(childrenList);
QObject myPermanentObject;
QObject myPermanentObject2;
...
QObjectList childrenList = children();
childrenList.removeAt(indexOf(myPermanentObject));
childrenList.removeAt(indexOf(myPermanentObject2));
...
qDeleteAll(childrenList);
To copy to clipboard, switch view to plain text mode
Thanks
Bookmarks