PythonQt.QtCore.QPersistentModelIndex · declarations 001
Back to PythonQt.QtCore.QPersistentModelIndex
child
child(row: int, column: int) -> Any
X.child(row, column) -> PythonQt.QtCore.QModelIndex
Upstream PySide2 reference signatures (binding differences may apply):
child(self, row: int, column: int) -> PySide2.QtCore.QModelIndex
Source: https://doc.qt.io/archives/qt-5.15/qpersistentmodelindex.html#child
column
column() -> int
X.column() -> int
Supplemental documentation: Qt 5 reference:
int QPersistentModelIndex::column() const
Returns the column this persistent model index refers to.
Upstream PySide2 reference signatures (binding differences may apply):
column(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qpersistentmodelindex.html#column
data
data(role: int) -> Any
X.data(role) -> object
Supplemental documentation: Qt 5 reference:
QVariant QPersistentModelIndex::data(int role \= Qt::DisplayRole) const
Returns the data for the given role for the item referred to by the index, or a default-constructed QVariant if this persistent model index is invalid.
See also Qt::ItemDataRole and QAbstractItemModel::setData().
Upstream PySide2 reference signatures (binding differences may apply):
data(self, role: int=...) -> typing.Any
Source: https://doc.qt.io/archives/qt-5.15/qpersistentmodelindex.html#data
flags
flags() -> Any
X.flags()
Supplemental documentation: Qt 5 reference:
Qt::ItemFlags QPersistentModelIndex::flags() const
Returns the flags for the item referred to by the index.
This function was introduced in Qt 4.2.
Upstream PySide2 reference signatures (binding differences may apply):
flags(self) -> PySide2.QtCore.Qt.ItemFlags
Source: https://doc.qt.io/archives/qt-5.15/qpersistentmodelindex.html#flags
internalId
internalId() -> int
X.internalId() -> int
Upstream PySide2 reference signatures (binding differences may apply):
internalId(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qpersistentmodelindex.html#internalId
isValid
isValid() -> bool
X.isValid() -> bool
Supplemental documentation: Qt 5 reference:
bool QPersistentModelIndex::isValid() const
Returns true if this persistent model index is valid; otherwise returns false.
A valid index belongs to a model, and has non-negative row and column numbers.
See also model(), row(), and column().
Upstream PySide2 reference signatures (binding differences may apply):
isValid(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qpersistentmodelindex.html#isValid
model
model() -> Any
X.model() -> PythonQt.QtCore.QAbstractItemModel
Supplemental documentation: Qt 5 reference:
const QAbstractItemModel *QPersistentModelIndex::model() const
Returns the model that the index belongs to.
Upstream PySide2 reference signatures (binding differences may apply):
model(self) -> PySide2.QtCore.QAbstractItemModel
Source: https://doc.qt.io/archives/qt-5.15/qpersistentmodelindex.html#model
operator_cast_QModelIndex
operator_cast_QModelIndex() -> Any
X.operator_cast_QModelIndex() -> PythonQt.QtCore.QModelIndex
parent
parent() -> Any
X.parent() -> PythonQt.QtCore.QModelIndex
Supplemental documentation: Qt 5 reference:
QModelIndex QPersistentModelIndex::parent() const
Returns the parent QModelIndex for this persistent index, or an invalid QModelIndex if it has no parent.
See also sibling() and model().
Upstream PySide2 reference signatures (binding differences may apply):
parent(self) -> PySide2.QtCore.QModelIndex
Source: https://doc.qt.io/archives/qt-5.15/qpersistentmodelindex.html#parent
row
row() -> int
X.row() -> int
Supplemental documentation: Qt 5 reference:
int QPersistentModelIndex::row() const
Returns the row this persistent model index refers to.
Upstream PySide2 reference signatures (binding differences may apply):
row(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qpersistentmodelindex.html#row
sibling
sibling(row: int, column: int) -> Any
X.sibling(row, column) -> PythonQt.QtCore.QModelIndex
Supplemental documentation: Qt 5 reference:
QModelIndex QPersistentModelIndex::sibling(int row, int column) const
Returns the sibling at row and column or an invalid QModelIndex if there is no sibling at this position.
See also parent().
Upstream PySide2 reference signatures (binding differences may apply):
sibling(self, row: int, column: int) -> PySide2.QtCore.QModelIndex
Source: https://doc.qt.io/archives/qt-5.15/qpersistentmodelindex.html#sibling
swap
swap(other: Any) -> None
X.swap(other)
Supplemental documentation: Qt 5 reference:
void QPersistentModelIndex::swap(QPersistentModelIndex \&other)
Swaps this persistent modelindex with other. This function is very fast and never fails.
This function was introduced in Qt 5.0.
Upstream PySide2 reference signatures (binding differences may apply):
swap(self, other: PySide2.QtCore.QPersistentModelIndex) -> None
Source: https://doc.qt.io/archives/qt-5.15/qpersistentmodelindex.html#swap