QQmlAspectEngine Class

(Qt3DCore::Quick::QQmlAspectEngine)

The QQmlAspectEngine provides an environment for the QAspectEngine and a method for instantiating QML components. 更多...

头文件: #include <Qt3DQuick/QQmlAspectEngine>
qmake: QT += 3dcore
基类: QObject

公有类型

enum Status { Null, Ready, Loading, Error }

公有函数

QQmlAspectEngine(QObject *parent = nullptr)
QAspectEngine *aspectEngine() const
QQmlEngine *qmlEngine() const
void setSource(const QUrl &source)
Status status() const
  • 32 个公有函数继承自 QObject

信号

void sceneCreated(QObject *rootObject)
void statusChanged(Status status)

其他继承的成员

  • 1 个属性继承自 QObject
  • 1 个公有槽函数继承自 QObject
  • 1 个公有变量继承自 QObject
  • 10 个静态公有成员继承自 QObject
  • 9 个受保护的函数继承自 QObject
  • 2 个受保护的变量继承自 QObject

详细描述

The QQmlAspectEngine provides an environment for the QAspectEngine and a method for instantiating QML components.

成员类型

enum QQmlAspectEngine::Status

The status of the engine.

ConstantValue
Qt3DCore::Quick::QQmlAspectEngine::Null0
Qt3DCore::Quick::QQmlAspectEngine::Ready1
Qt3DCore::Quick::QQmlAspectEngine::Loading2
Qt3DCore::Quick::QQmlAspectEngine::Error3

成员函数

QQmlAspectEngine::QQmlAspectEngine(QObject *parent = nullptr)

Constructs a new QQmlAspectEngine with parent.

QAspectEngine *QQmlAspectEngine::aspectEngine() const

Returns the aspectEngine.

QQmlEngine *QQmlAspectEngine::qmlEngine() const

Returns the engine.

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

This signal is emitted with rootObject when the scene has been instantiated. This provides a chance to manipulate the scene before passing it over to the aspect engine. Useful for convenience window classes to set up cameras and surfaces on the framegraph and event sources for the input aspect etc.

void QQmlAspectEngine::setSource(const QUrl &source)

Sets source as a source for the QML component to be created.

Status QQmlAspectEngine::status() const

Returns the status.

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

This signal is emitted with status when the status of the engine changes.