QQmlAspectEngine Class
class Qt3DCore::Quick::QQmlAspectEngineDie QQmlAspectEngine bietet eine Umgebung für die QAspectEngine und eine Methode zur Instanziierung von QML-Komponenten. Mehr...
Kopfzeile: | #include <Qt3DQuick/QQmlAspectEngine> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS 3DCore) target_link_libraries(mytarget PRIVATE Qt6::3DCore) |
qmake: | QT += 3dcore |
Vererbt: | QObject |
Status: | Veraltet |
Öffentliche Typen
enum | Status { Null, Ready, Loading, Error } |
Öffentliche Funktionen
QQmlAspectEngine(QObject *parent = nullptr) | |
Qt3DCore::QAspectEngine * | aspectEngine() const |
QQmlEngine * | qmlEngine() const |
void | setSource(const QUrl &source) |
Qt3DCore::Quick::QQmlAspectEngine::Status | status() const |
Signale
void | sceneCreated(QObject *rootObject) |
void | statusChanged(Qt3DCore::Quick::QQmlAspectEngine::Status status) |
Dokumentation der Mitgliedstypen
enum QQmlAspectEngine::Status
Der Status des Motors.
Konstante | Wert |
---|---|
Qt3DCore::Quick::QQmlAspectEngine::Null | 0 |
Qt3DCore::Quick::QQmlAspectEngine::Ready | 1 |
Qt3DCore::Quick::QQmlAspectEngine::Loading | 2 |
Qt3DCore::Quick::QQmlAspectEngine::Error | 3 |
Mitgliederfunktion Dokumentation
[explicit]
QQmlAspectEngine::QQmlAspectEngine(QObject *parent = nullptr)
Konstruiert eine neue QQmlAspectEngine mit parent.
Qt3DCore::QAspectEngine *QQmlAspectEngine::aspectEngine() const
Gibt die aspectEngine zurück.
QQmlEngine *QQmlAspectEngine::qmlEngine() const
Gibt den Motor zurück.
[signal]
void QQmlAspectEngine::sceneCreated(QObject *rootObject)
Dieses Signal wird mit rootObject ausgegeben, wenn die Szene instanziiert wurde. Dies bietet die Möglichkeit, die Szene zu manipulieren, bevor sie an die Aspekt-Engine übergeben wird. Nützlich für Komfort-Fensterklassen zum Einrichten von Kameras und Oberflächen auf dem Framegraph und Ereignisquellen für den Eingabeaspekt usw.
void QQmlAspectEngine::setSource(const QUrl &source)
Legt source als Quelle für die zu erstellende QML-Komponente fest.
Qt3DCore::Quick::QQmlAspectEngine::Status QQmlAspectEngine::status() const
Gibt den Status zurück.
[signal]
void QQmlAspectEngine::statusChanged(Qt3DCore::Quick::QQmlAspectEngine::Status status)
Dieses Signal wird mit status ausgegeben, wenn sich der Status des Motors ändert.
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.