Details
-
Task
-
Resolution: Duplicate
-
P2: Important
-
None
-
None
-
None
Description
Implement support for selecting cells in the table using mouse/touch etc.
- Should this be factored out into a separate component?
- Support QItemSelectionModel
- Implement API for querying which cell is under a specific point (mouse/touch)
- Returning delegate items directly from an API is discouraged, since they can be reused/destroyed.
API suggestion:
TableView { selectionModel: ItemSelectionModel { } selectionDelegate: RubberBand { } delegate: Rectangle { color: TableView.isSelected ? "green" : "white" } }
Attachments
Issue Links
- duplicates
-
QTBUG-74750 TableView (in Qt Quick) doesn't support selecting items
- Closed
- is duplicated by
-
QTBUG-74750 TableView (in Qt Quick) doesn't support selecting items
- Closed
- is required for
-
QTBUG-70326 TableView
- In Progress