Qt3DCore::Quick::QQmlAspectEngine Class
class Qt3DCore::Quick::QQmlAspectEngineQQmlAspectEngine proporciona un entorno para QAspectEngine y un método para instanciar componentes QML. Más...
| Cabecera: | #include <Qt3DQuick/QQmlAspectEngine> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3DCore)target_link_libraries(mytarget PRIVATE Qt6::3DCore) |
| qmake: | QT += 3dcore |
| Hereda: | QObject |
| Status: | Obsoleto |
Tipos Públicos
| enum | Status { Null, Ready, Loading, Error } |
Funciones públicas
| QQmlAspectEngine(QObject *parent = nullptr) | |
| Qt3DCore::QAspectEngine * | aspectEngine() const |
| QQmlEngine * | qmlEngine() const |
| void | setSource(const QUrl &source) |
| Qt3DCore::Quick::QQmlAspectEngine::Status | status() const |
Señales
| void | sceneCreated(QObject *rootObject) |
| void | statusChanged(Qt3DCore::Quick::QQmlAspectEngine::Status status) |
Documentación de los tipos de miembros
enum QQmlAspectEngine::Status
Estado del motor.
| Constante | Valor |
|---|---|
Qt3DCore::Quick::QQmlAspectEngine::Null | 0 |
Qt3DCore::Quick::QQmlAspectEngine::Ready | 1 |
Qt3DCore::Quick::QQmlAspectEngine::Loading | 2 |
Qt3DCore::Quick::QQmlAspectEngine::Error | 3 |
Documentación de la función miembro
[explicit] QQmlAspectEngine::QQmlAspectEngine(QObject *parent = nullptr)
Construye un nuevo QQmlAspectEngine con parent.
Qt3DCore::QAspectEngine *QQmlAspectEngine::aspectEngine() const
Devuelve el aspectEngine.
QQmlEngine *QQmlAspectEngine::qmlEngine() const
Devuelve el motor.
[signal] void QQmlAspectEngine::sceneCreated(QObject *rootObject)
Esta señal se emite con rootObject cuando se ha instanciado la escena. Esto proporciona una oportunidad para manipular la escena antes de pasarla al motor de aspecto. Es útil para que las clases de ventanas configuren cámaras y superficies en el framegraph y fuentes de eventos para el aspecto de entrada, etc.
void QQmlAspectEngine::setSource(const QUrl &source)
Establece source como fuente para el componente QML que se va a crear.
Qt3DCore::Quick::QQmlAspectEngine::Status QQmlAspectEngine::status() const
Devuelve el estado.
[signal] void QQmlAspectEngine::statusChanged(Qt3DCore::Quick::QQmlAspectEngine::Status status)
Esta señal se emite con status cuando cambia el estado del motor.
© 2026 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.