qml
Class info
Classes
| Name | Children | Inherits |
|---|---|---|
| JSEngine prettyqt.qml.jsengine Environment for evaluating JavaScript code. |
||
| JSEngineMixin prettyqt.qml.jsengine |
||
| JSValue prettyqt.qml.jsvalue Acts as a container for Qt/JavaScript data types. |
||
| JSValueIterator prettyqt.qml.jsvalueiterator Java-style iterator for JSValue. |
||
| QmlApplicationEngine prettyqt.qml.qmlapplicationengine Convenient way to load an application from a single QML file. |
||
| QmlComponent prettyqt.qml.qmlcomponent Encapsulates a QML component definition. |
||
| QmlEngine prettyqt.qml.qmlengine Environment for instantiating QML components. |
||
| QmlEngineMixin prettyqt.qml.qmlengine |
||
| QmlError prettyqt.qml.qmlerror Encapsulates a QML error. |
||
| QmlExpression prettyqt.qml.qmlexpression Evaluates JavaScript in a QML context. |
||
| QmlImageProviderBase prettyqt.qml.qmlimageproviderbase Used to register image providers in the QML engine. |
||
| QmlImageProviderBaseMixin prettyqt.qml.qmlimageproviderbase |
||
| QmlParserStatus prettyqt.qml.qmlparserstatus Updates on the QML parser state. |
||
| QmlParserStatusMixin prettyqt.qml.qmlparserstatus |
||
| QmlProperty prettyqt.qml.qmlproperty Abstracts accessing properties on objects created from QML. |
||
| QmlPropertyMap prettyqt.qml.qmlpropertymap Allows you to set key-value pairs that can be used in QML bindings. |
||
| QmlPropertyMapMixin prettyqt.qml.qmlpropertymap |
🛈 DocStrings
Classes for QML and JavaScript languages.
JSEngine
Bases: JSEngineMixin, QJSEngine
Environment for evaluating JavaScript code.
Source code in prettyqt/qml/jsengine.py
JSValue
Bases: QJSValue
Acts as a container for Qt/JavaScript data types.
Source code in prettyqt/qml/jsvalue.py
from_object(obj, jsengine: qml.QJSEngine) -> Self
classmethod
Convert any python object into a QJSValue (must happen in GUI thread).
Source code in prettyqt/qml/jsvalue.py
JSValueIterator
Bases: QJSValueIterator
Java-style iterator for JSValue.
Source code in prettyqt/qml/jsvalueiterator.py
QmlApplicationEngine
Bases: QmlEngineMixin, QQmlApplicationEngine
Convenient way to load an application from a single QML file.
Source code in prettyqt/qml/qmlapplicationengine.py
QmlComponent
Bases: ObjectMixin, QQmlComponent
Encapsulates a QML component definition.
Source code in prettyqt/qml/qmlcomponent.py
QmlEngine
Bases: QmlEngineMixin, QQmlEngine
Environment for instantiating QML components.
Source code in prettyqt/qml/qmlengine.py
QmlEngineMixin
Bases: JSEngineMixin, _QmlEngineBase
Source code in prettyqt/qml/qmlengine.py
get_object_ownership(obj: core.QObject) -> ObjectOwnershipStr
set_object_ownership(obj: core.QObject, mode: ObjectOwnershipStr | qml.QQmlEngine.ObjectOwnership)
Set the object ownership.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
obj
|
QObject
|
object to set ownership for |
required |
mode
|
ObjectOwnershipStr | ObjectOwnership
|
object ownership to use |
required |
Source code in prettyqt/qml/qmlengine.py
QmlError
Bases: QQmlError
Encapsulates a QML error.
Source code in prettyqt/qml/qmlerror.py
QmlExpression
Bases: ObjectMixin, QQmlExpression
Evaluates JavaScript in a QML context.
Source code in prettyqt/qml/qmlexpression.py
QmlImageProviderBase
Bases: QmlImageProviderBaseMixin, QQmlImageProviderBase
Used to register image providers in the QML engine.
QmlParserStatus
Bases: QmlParserStatusMixin, QQmlParserStatus
Updates on the QML parser state.
QmlProperty
Bases: QQmlProperty
Abstracts accessing properties on objects created from QML.
Source code in prettyqt/qml/qmlproperty.py
QmlPropertyMap
Bases: QmlPropertyMapMixin, QQmlPropertyMap, MutableMapping
Allows you to set key-value pairs that can be used in QML bindings.