[Qt-interest] save QObject based classes in vector with auto delete functionality

Matthias Pospiech matthias.pospiech at gmx.de
Mon Oct 19 14:40:46 CEST 2009


I have a class derived from QThread (Classes which do Curve Fitting).
Now I want to save these Classes (which contain the fit results) in a 
vector.

That has the principle problem that I cannot copy a QObject. I could 
construct all classes as pointers and save only the pointers.
However I do not want to manually take care of the deletion.
Is there a Pointer class which I can use, which automatically takes care 
of the deletion of the objects in the vector?

Matthias



More information about the Qt-interest-old mailing list