Skip to content

QmlError

Qt Base Class: QQmlError

Signature: QQmlError(self) -> None QQmlError(self, arg__1: PySide6.QtQml.QQmlError) -> None

Base classes

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

⋔ Inheritance diagram

graph TD
  1473572320848["qml.QmlError"]
  1473572252528["QtQml.QQmlError"]
  1473291690208["Shiboken.Object"]
  140713234304496["builtins.object"]
  1473572252528 --> 1473572320848
  1473291690208 --> 1473572252528
  140713234304496 --> 1473291690208

🛈 DocStrings

Bases: QQmlError

Encapsulates a QML error.

Source code in prettyqt\qml\qmlerror.py
class QmlError(QtQml.QQmlError):
    """Encapsulates a QML error."""

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

    def get_url(self) -> core.Url:
        return core.Url(self.url())

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

    def __str__(self):
        return self.toString()