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

QItemSelection supports only one selection direction

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.6.3
    • None
    • Linux/X11

    Description

      The QItemSelectionModel for qml is quite nice, but there is no way to interact with it in regards of selection order. QItemSelectionModel offers only the select(QItemSelection) and select(QModelIndex) API.

      If I am selecting in the table from top to bottom, I can just use the QItemSelection call, but if the reverse is true, I have to construct each individual index and call select on each of the range, since QItemSelection enforces that its topLeft index is above bottomRight in table.

      Not sure if QItemSelection needs to enforce this, if so, it would be nice for the QItemSelectionModel to offer some helper slots for such directional ranges. The current impl of QItemSelection silently swaps the explicit ordering one has given it, which is also not ideal

      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
            r.vitanov Rosen Vitanov
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes