Skip to content

PersistentModelIndex

Qt Base Class: QPersistentModelIndex

Signature: QPersistentModelIndex(self) -> None QPersistentModelIndex(self, index: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex]) -> None QPersistentModelIndex(self, other: Union[PySide6.QtCore.QPersistentModelIndex, PySide6.QtCore.QModelIndex]) -> None

Base classes

Name Children Inherits
QPersistentModelIndex
PySide6.QtCore
QPersistentModelIndex(self) -> None

⋔ Inheritance diagram

graph TD
  1473299801360["core.PersistentModelIndex"]
  1473243810576["QtCore.QPersistentModelIndex"]
  1473291690208["Shiboken.Object"]
  140713234304496["builtins.object"]
  1473243810576 --> 1473299801360
  1473291690208 --> 1473243810576
  140713234304496 --> 1473291690208

🛈 DocStrings

Bases: QPersistentModelIndex

Used to locate data in a data model.

Source code in prettyqt\core\persistentmodelindex.py
class PersistentModelIndex(QtCore.QPersistentModelIndex):
    """Used to locate data in a data model."""

    def __bool__(self):
        return self.isValid()

    def __getitem__(self, flag: int):
        return self.data(flag)