PythonQt.Qt.QPersistentModelIndex
QPersistentModelIndex
PythonQtInstanceWrapper object
Native bases: PythonQtInstanceWrapper
Supplemental documentation: Qt 5 reference:
Detailed Description
A QPersistentModelIndex is a model index that can be stored by an application, and later used to access information in a model. Unlike the QModelIndex class, it is safe to store a QPersistentModelIndex since the model will ensure that references to items will continue to be valid as long as they can be accessed by the model.
It is good practice to check that persistent model indexes are valid before using them.
Note: You cannot store a QStandardItemModel's QPersistentModelIndex in one of the model's items.
Source: https://doc.qt.io/archives/qt-5.15/qpersistentmodelindex.html
Complete member index
Every captured member retains its own identity. Identical captured declaration text is linked once; this does not establish native inheritance or interchangeable objects.
| Member | Kind | Signature | Summary |
|---|---|---|---|
__init__ |
function | (self, *args: Any, **kwargs: Any) -> None |
Native constructor; consult class documentation for supported overloads. (shared captured text) |
child |
function | (self, row: int, column: int) -> Any |
X.child(row, column) -> PythonQt.QtCore.QModelIndex (shared captured text) |
className |
function | (self, *args: Any, **kwargs: Any) -> Any |
Return the classname of the object (shared captured text) |
column |
function | (self) -> int |
X.column() -> int (shared captured text) |
data |
function | (self, role: int) -> Any |
X.data(role) -> object (shared captured text) |
delete |
function | (self, *args: Any, **kwargs: Any) -> Any |
Deletes the C++ object (at your own risk, my friend!) (shared captured text) |
flags |
function | (self) -> Any |
Returns the flags for the item referred to by the index. (shared captured text) |
help |
function | (self, *args: Any, **kwargs: Any) -> Any |
Shows the help of available methods for this class (shared captured text) |
inherits |
function | (self, *args: Any, **kwargs: Any) -> Any |
Returns if the class inherits or is of given type name (shared captured text) |
internalId |
function | (self) -> int |
X.internalId() -> int (shared captured text) |
isValid |
function | (self) -> bool |
X.isValid() -> bool (shared captured text) |
model |
function | (self) -> Any |
X.model() -> PythonQt.QtCore.QAbstractItemModel (shared captured text) |
operator_cast_QModelIndex |
function | (self) -> Any |
X.operator_cast_QModelIndex() -> PythonQt.QtCore.QModelIndex (shared captured text) |
parent |
function | (self) -> Any |
X.parent() -> PythonQt.QtCore.QModelIndex (shared captured text) |
row |
function | (self) -> int |
X.row() -> int (shared captured text) |
sibling |
function | (self, row: int, column: int) -> Any |
X.sibling(row, column) -> PythonQt.QtCore.QModelIndex (shared captured text) |
swap |
function | (self, other: Any) -> None |
Swaps this persistent modelindex with other. (shared captured text) |