Suppose you have
A: QList<myClass> myClassList;
B: QList<myClass *> myClassList;
When a remove is called (removeOne or clear, etc.) in cases A & B, are destructors called for myClass? Does the answer differ if using QHash or QQueue?
I thought the destructor was called in B, but not A .
Bookmarks