Skip to content

QmlProperty

Qt Base Class: QQmlProperty

Signature: QQmlProperty(self) -> None QQmlProperty(self, arg__1: PySide6.QtCore.QObject) -> None QQmlProperty(self, arg__1: PySide6.QtCore.QObject, arg__2: PySide6.QtQml.QQmlContext) -> None QQmlProperty(self, arg__1: PySide6.QtCore.QObject, arg__2: PySide6.QtQml.QQmlEngine) -> None QQmlProperty(self, arg__1: PySide6.QtCore.QObject, arg__2: str) -> None QQmlProperty(self, arg__1: PySide6.QtCore.QObject, arg__2: str, arg__3: PySide6.QtQml.QQmlContext) -> None QQmlProperty(self, arg__1: PySide6.QtCore.QObject, arg__2: str, arg__3: PySide6.QtQml.QQmlEngine) -> None QQmlProperty(self, arg__1: Union[PySide6.QtQml.QQmlProperty, PySide6.QtCore.QObject]) -> None

Base classes

Name Children Inherits
QQmlProperty
PySide6.QtQml
QQmlProperty(self) -> None

⋔ Inheritance diagram

graph TD
  1473572336464["qml.QmlProperty"]
  1473572227152["QtQml.QQmlProperty"]
  1473291690208["Shiboken.Object"]
  140713234304496["builtins.object"]
  1473572227152 --> 1473572336464
  1473291690208 --> 1473572227152
  140713234304496 --> 1473291690208

🛈 DocStrings

Bases: QQmlProperty

Abstracts accessing properties on objects created from QML.

Source code in prettyqt\qml\qmlproperty.py
class QmlProperty(QtQml.QQmlProperty):
    """Abstracts accessing properties on objects created from QML."""

    def __repr__(self):
        return get_repr(self, self.object())

    def get_method(self) -> core.MetaMethod:
        return core.MetaMethod(self.method())

    def get_property(self) -> core.MetaProperty:
        return core.MetaProperty(self.property())

    def get_property_type_category(self) -> PropertyTypeCategoryStr:
        return PROPERTY_TYPE_CATEGORY.inverse[self.propertyTypeCategory()]

    def get_type(self) -> TypeStr:
        return TYPE.inverse[self.type()]