QQmlAspectEngine Class

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)
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

The status of the engine.

常量
Qt3DCore::Quick::QQmlAspectEngine::Null 0
Qt3DCore::Quick::QQmlAspectEngine::Ready 1
Qt3DCore::Quick::QQmlAspectEngine::Loading 2
Qt3DCore::Quick::QQmlAspectEngine::Error 3

成員函數文檔編製

QQmlAspectEngine:: QQmlAspectEngine ( QObject * parent = nullptr)

Constructs a new QQmlAspectEngine with parent .

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

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

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

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

Returns the aspectEngine.

QQmlEngine *QQmlAspectEngine:: qmlEngine () const

Returns the engine.

void QQmlAspectEngine:: setSource (const QUrl & source )

設置 source as a source for the QML component to be created.

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

Returns the status.