Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
[SOLVED] do we need to free QstandardItem and QstandardItemModel ?
i was wondering if we have to free pointers of type QstandardItem and QstandardItemModel?
No you don't need to, the model takes ownership of the item, you can find more info "here":http://qt-project.org/doc/qt-4.8/qstandarditemmodel.html#setItem
Hi, thanks for your reply :-)
so we should only delete the model itself?
i just found the answer on QStandardItemModel :-)
yes we should delete it using slot deleteLater();
have a look on: