QTableWidgetItem objects deletion
-
Does setRowCount(0) perform a delete on the QTableWidgetItem objects that have been added, or is clearContents() needed too?
Thanks. -
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).