The QQmlAspectEngine provides an environment for the QAspectEngine and a method for instantiating QML components. More...
Header: | #include <Qt3DQuick/QQmlAspectEngine> |
CMake: | find_package(Qt6 COMPONENTS 3dcore REQUIRED) target_link_libraries(mytarget PRIVATE Qt6::3dcore) |
qmake: | QT += 3dcore |
Inherits: | QObject |
enum | Status { Null, Ready, Loading, Error } |
QQmlAspectEngine(QObject *parent = nullptr) | |
Qt3DCore::QAspectEngine * | aspectEngine() const |
QQmlEngine * | qmlEngine() const |
void | setSource(const QUrl &source) |
Qt3DCore::Quick::QQmlAspectEngine::Status | status() const |
void | sceneCreated(QObject *rootObject) |
void | statusChanged(Qt3DCore::Quick::QQmlAspectEngine::Status status) |
The status of the engine.
Constant | Value |
---|---|
Qt3DCore::Quick::QQmlAspectEngine::Null |
0 |
Qt3DCore::Quick::QQmlAspectEngine::Ready |
1 |
Qt3DCore::Quick::QQmlAspectEngine::Loading |
2 |
Qt3DCore::Quick::QQmlAspectEngine::Error |
3 |
Constructs a new QQmlAspectEngine with parent.
[signal]
void QQmlAspectEngine::sceneCreated(QObject *rootObject)
This signal is emitted with rootObject when the scene has been instantiated. This provides a chance to manipulate the scene before passing it over to the aspect engine. Useful for convenience window classes to set up cameras and surfaces on the framegraph and event sources for the input aspect etc.
[signal]
void QQmlAspectEngine::statusChanged(Qt3DCore::Quick::QQmlAspectEngine::Status status)
This signal is emitted with status when the status of the engine changes.
Returns the aspectEngine.
Returns the engine.
Sets source as a source for the QML component to be created.
Returns the status.
© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-6.2/qt3dcore-quick-qqmlaspectengine.html