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

QTableView's corner button documentation is inconsistent with its implementation

    XMLWordPrintable

Details

    • All
    • 56ec0f94b (dev), 35450cde8 (6.7)

    Description

      QTableView::cornerButtonEnabled says:

      [...]Clicking on this button will select all the cells in the table view.

      But using Qt 6.7.0, that leads to confusion when clicking that button, and finding out that it does not select the whole table, and deselects all selected rows.

      From Qt 6.7.0 source code:

       

      cornerWidgetConnection = QObject::connect(
                cornerWidget, &QTableCornerButton::clicked,
                q, &QTableView::reset);

      The latest version I could find with the actual documented behavior is 6.6.3:

      QObject::connect(cornerWidget, SIGNAL(clicked()), q, SLOT(selectAll())); 

       

      Attachments

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

        Activity

          People

            docteam Qt Documentation Team
            abderrahmene_rayene Abderrahmene Mihoub
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes