Qt pointers container destorying
Unsolved
General and Desktop
-
wrote on 1 Nov 2015, 21:38 last edited by Harb 11 Jan 2015, 22:12
Hi!
Does qt pointer container clean up data which it point to. I mean, if have created QList<int*> or QVector<char*> object, and than destructor for thous objects is called, will it delete data as well as pointers to it, or I need to do it explicitly? -
Hi,
No it doesn't, use qDeleteAll before clearing your list
1/2