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

QTableView's corner button documentation is inconsistent with its implementation

XMLWordPrintable

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

      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())); 

       

        For Gerrit Dashboard: QTBUG-124267
        # Subject Branch Project Status CR V

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes