Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QTableWidgetItem objects deletion
ShawnG last edited by
Does setRowCount(0) perform a delete on the QTableWidgetItem objects that have been added, or is clearContents() needed too?
HuXiKa last edited by
If you check the "source of QTableWidgetItem":http://qt.gitorious.org/qt/qt/blobs/4.7/src/gui/itemviews/qtablewidget.cpp you can find it out easily (setRowCount calls removeRows, which deletes the item).