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

Entire row/column mouse selection in QTableView no longer works in Qt6

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P1: Critical
    • None
    • 6.1.3
    • Widgets: Itemviews
    • None
    • Any
    • Windows

    Description

      Steps to reproduce:

      • Open a table view with row/column headers visible;
      • Click on column (row) header section - entire column/row gets selected. Don't release the mouse button;
      • Move the mouse to select other header sections.
      • In Qt5 the selection was extended and all hovered columns/rows were selected;
      • In Qt6 only one section is selected (the one under mouse cursor).

       

      This bug is a result of QTBUG-92561 fix.

      In QTableViewPrivate::selectColumn() the variable, now used to determine the start of the selection, ("currentSelectionStartIndex"), gets reset within

      "selectionModel->setCurrentIndex(index, QItemSelectionModel::NoUpdate);"

      call and points to just hovered section instead of original selection start.

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            tsydor Taras Sydor
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes