[SOLVED] do we need to free QstandardItem and QstandardItemModel ?
General and Desktop
4
Posts
2
Posters
1.4k
Views
1
Watching
-
Hi,
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
-
i just found the answer on QStandardItemModel :-)
yes we should delete it using slot deleteLater();
have a look on:
"Link1":http://qt-project.org/doc/qt-4.8/qabstractitemview.html#setModel
"deleteLater()":http://qt-project.org/doc/qt-4.8/qobject.html#deleteLater