Hi,

I have a class that looks like this:

Qt Code:
  1. struct moduleFieldDef
  2. {
  3. QString code;
  4. QString description;
  5. QVariant value;
  6. QVariant previousValue;
  7. };
  8.  
  9. typedef moduleFieldDef TmoduleFieldDef;
  10.  
  11. class fieldInColModel : public QAbstractTableModel
  12. {
  13. Q_OBJECT
  14. public:
  15. fieldInColModel(QObject *parent=0);
  16. ~fieldInColModel();
  17.  
  18. private:
  19. QList<TmoduleFieldDef> m_fields;
  20. };
To copy to clipboard, switch view to plain text mode 

In the implementation m_fields gets filled with a series of fields some of them with a valid * to a delegate. Both the class and the * to delegates share the same parent (a QDialog).

Now, when the class gets destroyed what happens to the list m_fields, the fields it contains and the valid * to a delegates? Do the valid * to a delegates gets destroyed too? or they will get destroy after (when its parent gets destroyed)?

Thanks,
Carlos.