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

QCameraSelector Class

Class to allow for selection of camera to be used.

This class was introduced in Qt 5.5.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QCameraSelector Class

  • Header: QCameraSelector

  • Since: Qt 5.5

  • CMake:

    find_package(Qt6 REQUIRED COMPONENTS 3drender)

    target_link_libraries(mytarget PRIVATE Qt6::3drender)

  • qmake: QT += 3drender

  • Inherited By:

  • Instantiated By: qml-qt3d-render-cameraselector.xml

  • Inherits: Qt3DRender::QFrameGraphNode

  • Group: QCameraSelector is part of framegraph

Detailed Description

A Qt3DRender::QCameraSelector can be used to select the camera, which is used by the FrameGraph when drawing the entities.

Property Documentation

 

camera : Qt3DCore::QEntity*

Holds the currently selected camera.

Access functions:

  • *camera() const

  • void setCamera( *camera)

Notifier signal:

  • void cameraChanged( *camera)

Member Function Documentation

 

[explicit] QCameraSelector::QCameraSelector(Qt3DCore::QNode *parent = nullptr)

The constructor creates an instance with the specified parent.

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