Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QVector of pointers
-
I just wanted to verify something. If i have a QVector of pointers, and i call QVector::clear, does it actually delete the pointers?
-
No, it does not call delete on every pointer in the vector.
You can call "qDeleteAll":http://doc.qt.nokia.com/stable/qtalgorithms.html#qDeleteAll-2 before clear to achieve this.
-
i didnt think it would, thanks