Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Is object passed to QStandardItemModel::setItemPrototype guaranteed to be freed?
-
http://doc.qt.io/qt-5/qstandarditemmodel.html#setItemPrototype
The model takes ownership of the prototype.
Does it mean I don't have to delete it manually later?
-
@enemyofthedawn Yes https://github.com/qt/qtbase/blob/a37dd93defd91b79fb6730d0ff0515a66a0d3972/src/gui/itemmodels/qstandarditemmodel.cpp#L2209