PythonQt.QtGui.QItemSelectionModel · declarations 001
Back to PythonQt.QtGui.QItemSelectionModel
Clear
instance-attribute
Clear: Any
ClearAndSelect
instance-attribute
ClearAndSelect: Any
Columns
instance-attribute
Columns: Any
Current
instance-attribute
Current: Any
Deselect
instance-attribute
Deselect: Any
NoUpdate
instance-attribute
NoUpdate: Any
Rows
instance-attribute
Rows: Any
Select
instance-attribute
Select: Any
SelectCurrent
instance-attribute
SelectCurrent: Any
SelectionFlag
instance-attribute
SelectionFlag: type
int([x]) -> integer int(x, base=10) -> integer
Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero.
If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.
int('0b100', base=0) 4
SelectionFlags
instance-attribute
SelectionFlags: type
int([x]) -> integer int(x, base=10) -> integer
Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero.
If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.
int('0b100', base=0) 4
Toggle
instance-attribute
Toggle: Any
ToggleCurrent
instance-attribute
ToggleCurrent: Any
clear
clear() -> None
X.clear()
Supplemental documentation: Qt 5 reference:
[virtual slot] void QItemSelectionModel::clear()
Clears the selection model. Emits selectionChanged() and currentChanged().
Upstream PySide2 reference signatures (binding differences may apply):
clear(self) -> None
Source: https://doc.qt.io/archives/qt-5.15/qitemselectionmodel.html#clear
clearCurrentIndex
clearCurrentIndex() -> None
X.clearCurrentIndex()
Supplemental documentation: Qt 5 reference:
[virtual slot] void QItemSelectionModel::clearCurrentIndex()
Clears the current index. Emits currentChanged().
Upstream PySide2 reference signatures (binding differences may apply):
clearCurrentIndex(self) -> None
Source: https://doc.qt.io/archives/qt-5.15/qitemselectionmodel.html#clearCurrentIndex
clearSelection
clearSelection() -> None
X.clearSelection()
Supplemental documentation: Qt 5 reference:
[slot] void QItemSelectionModel::clearSelection()
Clears the selection in the selection model. Emits selectionChanged().
This function was introduced in Qt 4.2.
Upstream PySide2 reference signatures (binding differences may apply):
clearSelection(self) -> None
Source: https://doc.qt.io/archives/qt-5.15/qitemselectionmodel.html#clearSelection
columnIntersectsSelection
columnIntersectsSelection(column: int, parent: Any) -> bool
X.columnIntersectsSelection(column, parent) -> bool
Supplemental documentation: Qt 5 reference:
bool QItemSelectionModel::columnIntersectsSelection(int column, const QModelIndex \&parent \= QModelIndex()) const
Returns true if there are any items selected in the column with the given parent.
Note: Since Qt 5.15, the default argument for parent is an empty model index.
Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.
Upstream PySide2 reference signatures (binding differences may apply):
columnIntersectsSelection(self, column: int, parent: PySide2.QtCore.QModelIndex=...) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qitemselectionmodel.html#columnIntersectsSelection
currentChanged
currentChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QItemSelectionModel.currentChanged; argument details are not documented.
Supplemental documentation: Qt 5 reference:
[signal] void QItemSelectionModel::currentChanged(const QModelIndex \¤t, const QModelIndex \&previous)
This signal is emitted whenever the current item changes. The previous model item index is replaced by the current index as the selection's current item.
Note that this signal will not be emitted when the item model is reset.
See also currentIndex(), setCurrentIndex(), and selectionChanged().
Source: https://doc.qt.io/archives/qt-5.15/qitemselectionmodel.html#currentChanged
currentColumnChanged
currentColumnChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QItemSelectionModel.currentColumnChanged; argument details are not documented.
Supplemental documentation: Qt 5 reference:
[signal] void QItemSelectionModel::currentColumnChanged(const QModelIndex \¤t, const QModelIndex \&previous)
This signal is emitted if the current item changes and its column is different to the column of the previous current item.
Note that this signal will not be emitted when the item model is reset.
See also currentChanged(), currentRowChanged(), currentIndex(), and setCurrentIndex().
Source: https://doc.qt.io/archives/qt-5.15/qitemselectionmodel.html#currentColumnChanged
currentIndex
instance-attribute
currentIndex: QModelIndex
Qt 5 reference:
QModelIndex QItemSelectionModel::currentIndex() const
Returns the model item index for the current item, or an invalid index if there is no current item.
See also setCurrentIndex().
Source: https://doc.qt.io/archives/qt-5.15/qitemselectionmodel.html#currentIndex
currentRowChanged
currentRowChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QItemSelectionModel.currentRowChanged; argument details are not documented.
Supplemental documentation: Qt 5 reference:
[signal] void QItemSelectionModel::currentRowChanged(const QModelIndex \¤t, const QModelIndex \&previous)
This signal is emitted if the current item changes and its row is different to the row of the previous current item.
Note that this signal will not be emitted when the item model is reset.
See also currentChanged(), currentColumnChanged(), currentIndex(), and setCurrentIndex().
Source: https://doc.qt.io/archives/qt-5.15/qitemselectionmodel.html#currentRowChanged
destroyed
destroyed(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QItemSelectionModel.destroyed; argument details are not documented.
emitSelectionChanged
emitSelectionChanged(newSelection: Any, oldSelection: Any) -> None
X.emitSelectionChanged(newSelection, oldSelection)
Supplemental documentation: Qt 5 reference:
[protected] void QItemSelectionModel::emitSelectionChanged(const QItemSelection \&newSelection, const QItemSelection \&oldSelection)
Compares the two selections newSelection and oldSelection and emits selectionChanged() with the deselected and selected items.
Upstream PySide2 reference signatures (binding differences may apply):
emitSelectionChanged(self, newSelection: PySide2.QtCore.QItemSelection, oldSelection: PySide2.QtCore.QItemSelection) -> None
Source: https://doc.qt.io/archives/qt-5.15/qitemselectionmodel.html#emitSelectionChanged
hasSelection
instance-attribute
hasSelection: bool
Qt 5 reference:
bool QItemSelectionModel::hasSelection() const
Returns true if the selection model contains any selection ranges; otherwise returns
false.
This function was introduced in Qt 4.2.
Source: https://doc.qt.io/archives/qt-5.15/qitemselectionmodel.html#hasSelection
isColumnSelected
isColumnSelected(column: int, parent: Any) -> bool
X.isColumnSelected(column, parent) -> bool
Supplemental documentation: Qt 5 reference:
bool QItemSelectionModel::isColumnSelected(int column, const QModelIndex \&parent \= QModelIndex()) const
Returns true if all items are selected in the column with the given parent.
Note that this function is usually faster than calling isSelected() on all items in the same column and that unselectable items are ignored.
Note: Since Qt 5.15, the default argument for parent is an empty model index.
Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.
Upstream PySide2 reference signatures (binding differences may apply):
isColumnSelected(self, column: int, parent: PySide2.QtCore.QModelIndex=...) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qitemselectionmodel.html#isColumnSelected
isRowSelected
isRowSelected(row: int, parent: Any) -> bool
X.isRowSelected(row, parent) -> bool
Supplemental documentation: Qt 5 reference:
bool QItemSelectionModel::isRowSelected(int row, const QModelIndex \&parent \= QModelIndex()) const
Returns true if all items are selected in the row with the given parent.
Note that this function is usually faster than calling isSelected() on all items in the same row and that unselectable items are ignored.
Note: Since Qt 5.15, the default argument for parent is an empty model index.
Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.
Upstream PySide2 reference signatures (binding differences may apply):
isRowSelected(self, row: int, parent: PySide2.QtCore.QModelIndex=...) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qitemselectionmodel.html#isRowSelected
isSelected
isSelected(index: Any) -> bool
X.isSelected(index) -> bool
Supplemental documentation: Qt 5 reference:
bool QItemSelectionModel::isSelected(const QModelIndex \&index) const
Returns true if the given model item index is selected.
Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.
Upstream PySide2 reference signatures (binding differences may apply):
isSelected(self, index: PySide2.QtCore.QModelIndex) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qitemselectionmodel.html#isSelected
model
instance-attribute
model: QAbstractItemModel
Qt 5 reference:
const QAbstractItemModel *QItemSelectionModel::model() const
Returns the item model operated on by the selection model.
See also setModel().
QAbstractItemModel *QItemSelectionModel::model()
Returns the item model operated on by the selection model.
This function was introduced in Qt 5.5.
Source: https://doc.qt.io/archives/qt-5.15/qitemselectionmodel.html#model
modelChanged
modelChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QItemSelectionModel.modelChanged; argument details are not documented.
Supplemental documentation: Qt 5 reference:
[signal] void QItemSelectionModel::modelChanged(QAbstractItemModel *model)
This signal is emitted when the model is successfully set with setModel().
This function was introduced in Qt 5.5.
See also model() and setModel().
Source: https://doc.qt.io/archives/qt-5.15/qitemselectionmodel.html#modelChanged
objectNameChanged
objectNameChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QItemSelectionModel.objectNameChanged; argument details are not documented.
reset
reset() -> None
X.reset()
Supplemental documentation: Qt 5 reference:
[virtual slot] void QItemSelectionModel::reset()
Clears the selection model. Does not emit any signals.
Upstream PySide2 reference signatures (binding differences may apply):
reset(self) -> None
Source: https://doc.qt.io/archives/qt-5.15/qitemselectionmodel.html#reset
rowIntersectsSelection
rowIntersectsSelection(row: int, parent: Any) -> bool
X.rowIntersectsSelection(row, parent) -> bool
Supplemental documentation: Qt 5 reference:
bool QItemSelectionModel::rowIntersectsSelection(int row, const QModelIndex \&parent \= QModelIndex()) const
Returns true if there are any items selected in the row with the given parent.
Note: Since Qt 5.15, the default argument for parent is an empty model index.
Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.
Upstream PySide2 reference signatures (binding differences may apply):
rowIntersectsSelection(self, row: int, parent: PySide2.QtCore.QModelIndex=...) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qitemselectionmodel.html#rowIntersectsSelection
select
select(selection: Any, command: Any) -> None
X.select(selection, command)
Supplemental documentation: Qt 5 reference:
[virtual slot] void QItemSelectionModel::select(const QItemSelection \&selection, QItemSelectionModel::SelectionFlags command)
Selects the item selection using the specified command, and emits selectionChanged().
See also QItemSelectionModel::SelectionFlag.
[virtual slot] void QItemSelectionModel::select(const QModelIndex \&index, QItemSelectionModel::SelectionFlags command)
Selects the model item index using the specified command, and emits selectionChanged().
See also QItemSelectionModel::SelectionFlags.
Upstream PySide2 reference signatures (binding differences may apply):
select(self, index: PySide2.QtCore.QModelIndex, command: PySide2.QtCore.QItemSelectionModel.SelectionFlags) -> None
select(self, selection: PySide2.QtCore.QItemSelection, command: PySide2.QtCore.QItemSelectionModel.SelectionFlags) -> None
Source: https://doc.qt.io/archives/qt-5.15/qitemselectionmodel.html#select
selectedColumns
selectedColumns(row: int) -> tuple
X.selectedColumns(row) -> tuple
Supplemental documentation: Qt 5 reference:
QModelIndexList QItemSelectionModel::selectedColumns(int row \= 0) const
Returns the indexes in the given row for columns where all rows are selected.
Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.
This function was introduced in Qt 4.2.
See also selectedIndexes() and selectedRows().
Upstream PySide2 reference signatures (binding differences may apply):
selectedColumns(self, row: int=...) -> typing.List[int]
Source: https://doc.qt.io/archives/qt-5.15/qitemselectionmodel.html#selectedColumns
selectedIndexes
instance-attribute
selectedIndexes: Any
Qt 5 reference:
selectedIndexes : const QModelIndexList
This property was introduced in Qt 5.5.
Access functions:
| QModelIndexList | selectedIndexes() const |
|---|---|
Notifier signal:
| void | selectionChanged(const QItemSelection \&selected, const QItemSelection \&deselected) |
|---|---|
QModelIndexList QItemSelectionModel::selectedIndexes() const
Returns a list of all selected model item indexes. The list contains no duplicates, and is not sorted.
Note: Getter function for property selectedIndexes.
Source: https://doc.qt.io/archives/qt-5.15/qitemselectionmodel.html#selectedIndexes
selectedRows
selectedRows(column: int) -> tuple
X.selectedRows(column) -> tuple
Supplemental documentation: Qt 5 reference:
QModelIndexList QItemSelectionModel::selectedRows(int column \= 0) const
Returns the indexes in the given column for the rows where all columns are selected.
Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.
This function was introduced in Qt 4.2.
See also selectedIndexes() and selectedColumns().
Upstream PySide2 reference signatures (binding differences may apply):
selectedRows(self, column: int=...) -> typing.List[int]
Source: https://doc.qt.io/archives/qt-5.15/qitemselectionmodel.html#selectedRows
selection
instance-attribute
selection: QItemSelection
Qt 5 reference:
const QItemSelection QItemSelectionModel::selection() const
Returns the selection ranges stored in the selection model.
Source: https://doc.qt.io/archives/qt-5.15/qitemselectionmodel.html#selection
selectionChanged
selectionChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QItemSelectionModel.selectionChanged; argument details are not documented.
Supplemental documentation: Qt 5 reference:
[signal] void QItemSelectionModel::selectionChanged(const QItemSelection \&selected, const QItemSelection \&deselected)
This signal is emitted whenever the selection changes. The change in the selection is represented as an item selection of deselected items and an item selection of selected items.
Note the that the current index changes independently from the selection. Also note that this signal will not be emitted when the item model is reset.
Note: Notifier signal for property selectedIndexes.
See also select() and currentChanged().
Source: https://doc.qt.io/archives/qt-5.15/qitemselectionmodel.html#selectionChanged
setCurrentIndex
setCurrentIndex(index: Any, command: Any) -> None
X.setCurrentIndex(index, command)
Supplemental documentation: Qt 5 reference:
[virtual slot] void QItemSelectionModel::setCurrentIndex(const QModelIndex \&index, QItemSelectionModel::SelectionFlags command)
Sets the model item index to be the current item, and emits currentChanged(). The current item is used for keyboard navigation and focus indication; it is independent of any selected items, although a selected item can also be the current item.
Depending on the specified command, the index can also become part of the current selection.
See also currentIndex() and select().
Upstream PySide2 reference signatures (binding differences may apply):
setCurrentIndex(self, index: PySide2.QtCore.QModelIndex, command: PySide2.QtCore.QItemSelectionModel.SelectionFlags) -> None
Source: https://doc.qt.io/archives/qt-5.15/qitemselectionmodel.html#setCurrentIndex
setModel
setModel(model: Any) -> None
X.setModel(model)
Supplemental documentation: Qt 5 reference:
void QItemSelectionModel::setModel(QAbstractItemModel *model)
Sets the model to model. The modelChanged() signal will be emitted.
This function was introduced in Qt 5.5.
See also model() and modelChanged().
Upstream PySide2 reference signatures (binding differences may apply):
setModel(self, model: PySide2.QtCore.QAbstractItemModel) -> None
Source: https://doc.qt.io/archives/qt-5.15/qitemselectionmodel.html#setModel