Skip to content

PersistentModelIndex

Base classes

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

⋔ Inheritance diagram

graph TD
  3404356890["core.PersistentModelIndex"]
  883424805["QtCore.QPersistentModelIndex"]
  37984305["Shiboken.Object"]
  2751680898["builtins.object"]
  883424805 --> 3404356890
  37984305 --> 883424805
  2751680898 --> 37984305

🛈 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)

:fa-brands-github: Show source on GitHub