Skip to content

QmlError

Base classes

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

⋔ Inheritance diagram

graph TD
  1691372916["qml.QmlError"]
  2525952657["QtQml.QQmlError"]
  37984305["Shiboken.Object"]
  2751680898["builtins.object"]
  2525952657 --> 1691372916
  37984305 --> 2525952657
  2751680898 --> 37984305

🛈 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 __str__(self):
        return self.toString()

:fa-brands-github: Show source on GitHub