Best Practice: QT4 QList<Mything*>... on Heap, or QList<Mything> using reference?
- by Mike Crowe
Hi Folks,
Learning C++, so be gentle :)...
I have been designing my application primarily using heap variables (coming from C), so I've designed structures like this:
QList<Criteria*> _Criteria;
// ...
Criteria *c = new Criteria(....);
_Criteria.append(c);
All through my program, I'm passing pointers to specific Criteria, or often the…