Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.6.3
-
None
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