A type alias for the clear mode.
A type alias for the cursor move direction.
A type alias for the select args.
A type alias for a selection in a selection model.
A type alias for the selection mode.
Construct a new selection model.
The options for initializing the model.
The column index of the cursor.
This is -1
if the selection model is empty.
The row index of the cursor.
This is -1
if the selection model is empty.
The data model associated with the selection model.
Whether the selection model is empty.
An empty selection model will yield an empty selections
iterator.
A signal emitted when the selection model has changed.
Clear all selections in the selection model.
Emit the changed
signal for the selection model.
Subclasses should call this method whenever the selection model has changed so that attached data grids can update themselves.
Test whether any selection intersects a cell.
The row index of interest.
The column index of interest.
Whether any selection intersects the cell.
This method may be reimplemented in a subclass.
Test whether any selection intersects a column.
The column index of interest.
Whether any selection intersects the column.
This method may be reimplemented in a subclass.
Test whether any selection intersects a row.
The row index of interest.
Whether any selection intersects the row.
This method may be reimplemented in a subclass.
Move cursor down/up/left/right while making sure it remains within the bounds of selected rectangles
The direction of the movement.
A signal handler for the data model changed
signal.
The arguments for the signal.
Selection model implementations should update their selections in a manner that is relevant for the changes to the data model.
The default implementation of this method is a no-op.
Select the specified cells.
The arguments for the selection.
Generated using TypeDoc
A base class for creating data grid selection models. The namespace for the
SelectionModel
class statics.Notes
If the predefined selection models are insufficient for a particular use case, a custom model can be defined which derives from this class.