IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

QQmlAspectEngine Class

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

This class was introduced in Qt 5.7.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QQmlAspectEngine Class

  • Header: Qt3DQuick/QQmlAspectEngine

  • Since: Qt 5.7

  • CMake:

    find_package(Qt6 REQUIRED COMPONENTS 3dcore)

    target_link_libraries(mytarget PRIVATE Qt6::3dcore)

  • qmake: QT += 3dcore

  • Inherits: QObject

Detailed Description

 

Member Type Documentation

 

enum QQmlAspectEngine::Status

The status of the engine.

Member Function Documentation

 

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

Constructs a new QQmlAspectEngine with parent.

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

Returns the aspectEngine.

QQmlEngine *QQmlAspectEngine::qmlEngine() const

Returns the engine.

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.

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

Returns the status.

void QQmlAspectEngine::statusChanged(Qt3DCore::Quick::QQmlAspectEngine::Status status)

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

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+