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:

Qt Code:
  1. QObject myPermanentObject;
  2. QObject myPermanentObject2;
  3. ...
  4. QObjectList childrenList = children();
  5. childrenList.removeAt(indexOf(myPermanentObject));
  6. childrenList.removeAt(indexOf(myPermanentObject2));
  7. ...
  8. qDeleteAll(childrenList);
To copy to clipboard, switch view to plain text mode 

Thanks