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

QTableView + SelectRows dragging with CTRL key

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 4.6.0
    • 4.3.3
    • Widgets: Itemviews
    • None
    • 0644e3dce532b1df00a77d3a30c61d6b75d3ff30

    Description

      With a QTableView set to use SelectionBehavior(QAbstractItemView::SelectRows) and SelectionMode(QAbstractItemView::ExtendedSelection) the CTRL select does not seem to function correctly.

      Dragging the mouse together with the CTRL key on the viewport toggles the
      selection of the rows - like expected.

      Doing the same on the row headers on the left of the widget leads to different ( pointless ) selections.

      This can be seen with the following sample code:

      #include <QtGui>
      int main(int argc, char *argv[])
      {
      QApplication app(argc, argv);
      QTableWidget tableWidget(5,5);
      tableWidget.setSelectionBehavior(QAbstractItemView::SelectRows);
      tableWidget.setSelectionMode(QAbstractItemView::ExtendedSelection);
      tableWidget.show();
      return app.exec();
      }

      Attachments

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

        Activity

          People

            wallison Warwick Allison (closed Nokia identity) (Inactive)
            dettman Dean Dettman (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes