Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-36329

QTableWidget::clear() documentation doesn't mention headers

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P3: Somewhat important
    • None
    • 5.2.0
    • Documentation
    • 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

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            vertries Nico Vertriest (Inactive)
            szotsaki Szőts Ákos
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes