Qt 6.11 is out! See what's new in the release
blog
QTableWidgetItem objects deletion
General and Desktop
2
Posts
2
Posters
2.3k
Views
1
Watching
-
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).