Qt3DCore::Quick::QQmlAspectEngine Class
class Qt3DCore::Quick::QQmlAspectEngineQQmlAspectEngine は、QAspectEngine 向けの環境と、QML コンポーネントをインスタンス化するメソッドを提供します。詳細...
| ヘッダー: | #include <Qt3DQuick/QQmlAspectEngine> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3DCore) target_link_libraries(mytarget PRIVATE Qt6::3DCore) |
| qmake: | QT += 3dcore |
| 継承元: | 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) |
メンバ型のドキュメント
enum QQmlAspectEngine::Status
エンジンの状態。
| 定数 | 値 |
|---|---|
Qt3DCore::Quick::QQmlAspectEngine::Null | 0 |
Qt3DCore::Quick::QQmlAspectEngine::Ready | 1 |
Qt3DCore::Quick::QQmlAspectEngine::Loading | 2 |
Qt3DCore::Quick::QQmlAspectEngine::Error | 3 |
メンバ関数のドキュメント
[explicit] QQmlAspectEngine::QQmlAspectEngine(QObject *parent = nullptr)
parent を使用して、新しいQQmlAspectEngineを構築します。
Qt3DCore::QAspectEngine *QQmlAspectEngine::aspectEngine() const
aspectEngine を返します。
QQmlEngine *QQmlAspectEngine::qmlEngine() const
エンジンオブジェクトを返します。
[signal] void QQmlAspectEngine::sceneCreated(QObject *rootObject)
このシグナルは、シーンがインスタンス化された際に `rootObject ` とともに発火します。これにより、シーンをアスペクトエンジンに渡す前に、シーンを操作する機会が得られます。フレームグラフ上のカメラやサーフェスを設定したり、入力アスペクト用のイベントソースを設定したりする際に、利便性ウィンドウクラスで活用できます。
void QQmlAspectEngine::setSource(const QUrl &source)
source を、作成される QML コンポーネントのソースとして設定します。
Qt3DCore::Quick::QQmlAspectEngine::Status QQmlAspectEngine::status() const
ステータスを返します。
[signal] void QQmlAspectEngine::statusChanged(Qt3DCore::Quick::QQmlAspectEngine::Status status)
この信号は、エンジンの状態が変化した際に、status とともに送信されます。
© 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.