QQmlAspectEngine Class

class Qt3DCore::Quick::QQmlAspectEngine

QQmlAspectEngineは、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::Null0
Qt3DCore::Quick::QQmlAspectEngine::Ready1
Qt3DCore::Quick::QQmlAspectEngine::Loading2
Qt3DCore::Quick::QQmlAspectEngine::Error3

メンバ関数ドキュメント

[explicit] QQmlAspectEngine::QQmlAspectEngine(QObject *parent = nullptr)

新しい QQmlAspectEngine をparent で構築します。

Qt3DCore::QAspectEngine *QQmlAspectEngine::aspectEngine() const

アスペクトエンジンを返します。

QQmlEngine *QQmlAspectEngine::qmlEngine() const

エンジンを返す。

[signal] void QQmlAspectEngine::sceneCreated(QObject *rootObject)

このシグナルは、シーンがインスタンス化されたときにrootObject 。これは、アスペクトエンジンに渡す前にシーンを操作する機会を提供します。カメラやサーフェスをフレームグラフ上にセットアップするための便利なウィンドウクラスや、入力アスペクトのためのイベントソースなどに便利です。

void QQmlAspectEngine::setSource(const QUrl &source)

作成する QML コンポーネントのソースとしてsource を設定します。

Qt3DCore::Quick::QQmlAspectEngine::Status QQmlAspectEngine::status() const

ステータスを返す。

[signal] void QQmlAspectEngine::statusChanged(Qt3DCore::Quick::QQmlAspectEngine::Status status)

このシグナルは、エンジンのステータスが変化したときにstatus

© 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.