Qt3DCore::Quick::QQmlAspectEngine Class
class Qt3DCore::Quick::QQmlAspectEngineQQmlAspectEngine fornisce un ambiente per l'QAspectEngine e e un metodo per l'istanziazione dei componenti QML. Per saperne di più...
| Intestazione: | #include <Qt3DQuick/QQmlAspectEngine> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3DCore) target_link_libraries(mytarget PRIVATE Qt6::3DCore) |
| qmake: | QT += 3dcore |
| Eredita da: | QObject |
| Stato: | Obsoleta |
Questa classe è deprecata. Si sconsiglia vivamente di utilizzarla nel nuovo codice.
Tipi pubblici
| enum | Status { Null, Ready, Loading, Error } |
Funzioni pubbliche
| QQmlAspectEngine(QObject *parent = nullptr) | |
| Qt3DCore::QAspectEngine * | aspectEngine() const |
| QQmlEngine * | qmlEngine() const |
| void | setSource(const QUrl &source) |
| Qt3DCore::Quick::QQmlAspectEngine::Status | status() const |
Segnali
| void | sceneCreated(QObject *rootObject) |
| void | statusChanged(Qt3DCore::Quick::QQmlAspectEngine::Status status) |
Documentazione sui tipi dei membri
enum QQmlAspectEngine::Status
Lo stato del motore.
| Costante | Valore |
|---|---|
Qt3DCore::Quick::QQmlAspectEngine::Null | 0 |
Qt3DCore::Quick::QQmlAspectEngine::Ready | 1 |
Qt3DCore::Quick::QQmlAspectEngine::Loading | 2 |
Qt3DCore::Quick::QQmlAspectEngine::Error | 3 |
Documentazione delle funzioni membro
[explicit] QQmlAspectEngine::QQmlAspectEngine(QObject *parent = nullptr)
Crea un nuovo oggetto QQmlAspectEngine con ` parent`.
Qt3DCore::QAspectEngine *QQmlAspectEngine::aspectEngine() const
Restituisce l'aspectEngine.
QQmlEngine *QQmlAspectEngine::qmlEngine() const
Restituisce il motore.
[signal] void QQmlAspectEngine::sceneCreated(QObject *rootObject)
Questo segnale viene emesso con ` rootObject ` quando la scena è stata istanziata. Ciò offre la possibilità di manipolare la scena prima di passarla al motore degli aspetti. È utile per le classi di finestre di comodità per configurare telecamere e superfici sul framegraph e le fonti di eventi per l'aspetto di input, ecc.
void QQmlAspectEngine::setSource(const QUrl &source)
Imposta source come fonte per il componente QML da creare.
Qt3DCore::Quick::QQmlAspectEngine::Status QQmlAspectEngine::status() const
Restituisce lo stato.
[signal] void QQmlAspectEngine::statusChanged(Qt3DCore::Quick::QQmlAspectEngine::Status status)
Questo segnale viene emesso tramite un status e quando lo stato del motore cambia.
© 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.