QmlEngineMixin
Sub classes
| Name | Children | Inherits |
|---|---|---|
| QmlEngine prettyqt.qml.qmlengine Environment for instantiating QML components. |
||
| QmlApplicationEngine prettyqt.qml.qmlapplicationengine Convenient way to load an application from a single QML file. |
Base classes
| Name | Children | Inherits |
|---|---|---|
| JSEngineMixin prettyqt.qml.jsengine |
||
| object builtins The base class of the class hierarchy. |
⋔ Inheritance diagram
graph TD
3784176072["qml.QmlEngineMixin"]
3962672466["qml.JSEngineMixin"]
3227531497["core.ObjectMixin"]
2751680898["builtins.object"]
3962672466 --> 3784176072
3227531497 --> 3962672466
2751680898 --> 3227531497
2751680898 --> 3962672466
2751680898 --> 3784176072
🛈 DocStrings
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 |