ItemSelectionModel QML Type
Instantiates a QItemSelectionModel to be used in conjunction with a QAbstractItemModel and any view supporting it. More...
Import Statement: | import QtQml.Models 2.2 |
Since: | Qt 5.5 |
Instantiates: | QItemSelectionModel |
Properties
- currentIndex : QModelIndex
- hasSelection : bool
- model : QAbstractItemModel
- selectedIndexes : QModelIndexList
Signals
- currentChanged(QModelIndex current, QModelIndex previous)
- selectionChanged(QItemSelection selected, QItemSelection deselected)
Methods
- void clear()
- void clearCurrentIndex()
- void clearSelection()
- bool columnIntersectsSelection(int column, QModelIndex parent)
- bool isColumnSelected(int column, QModelIndex parent)
- bool isRowSelected(int row, QModelIndex parent)
- bool isSelected(QModelIndex index)
- void reset()
- bool rowIntersectsSelection(int row, QModelIndex parent)
- void select(QItemSelection selection, SelectionFlags command)
- void select(QModelIndex index, SelectionFlags command)
- QModelIndexList selectedColumns(int row)
- QModelIndexList selectedRows(int column)
- QItemSelection selection()
- void setCurrentIndex(QModelIndex index, SelectionFlags command)
Detailed Description
This page only enumerates the properties, methods, and signals available in QML. See QItemSelectionModel for the actual documentation of this class.
See also QItemSelectionModel and Models and Views in Qt Quick.
Property Documentation
Use setCurrentIndex() to set its value.
See also setCurrentIndex() and currentChanged().
It will trigger property binding updates every time selectionChanged() is emitted, even though its value hasn't changed.
See also selection(), selectedIndexes, select(), and selectionChanged().
Contains the list of all the indexes in the selection model.
Signal Documentation
Method Documentation
© 2017 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.