Details
-
Bug
-
Resolution: Out of scope
-
P3: Somewhat important
-
None
-
5.2.0
-
None
Description
QTableWidget::clear() method says "Removes all items in the view. This will also remove all selections. The table dimensions stay the same.".
Maybe for the experienced developer it is straightforward that this method also resets the headers (and thus the headers become integers, like "1, 2, 3" etc.), and the real function s/he is looking for is clearContents().
Please update the documentation to mention this fact, that the function removes the header names also.
I found a bug report, which was caused by the same ambiguity: https://bugreports.qt-project.org/browse/QTBUG-6205
And a forum report also: http://www.qtforum.org/article/29753/qtablewidget-horizontal-header-problem.html?#post112817