Sur cette page

Qt3DRender::QCameraSelector Class

class Qt3DRender::QCameraSelector

Classe permettant de sélectionner la caméra à utiliser. Plus...

En-tête : #include <QCameraSelector>
CMake : find_package(Qt6 REQUIRED COMPONENTS 3drender)
target_link_libraries(mytarget PRIVATE Qt6::3drender)
qmake : QT += 3drender
En QML : CameraSelector
Hérite : Qt3DRender::QFrameGraphNode
Statut : Déclassé

Propriétés

Fonctions publiques

QCameraSelector(Qt3DCore::QNode *parent = nullptr)
Qt3DCore::QEntity *camera() const

Emplacements publics

void setCamera(Qt3DCore::QEntity *camera)

Signaux

void cameraChanged(Qt3DCore::QEntity *camera)

Description détaillée

Une adresse Qt3DRender::QCameraSelector peut être utilisée pour sélectionner la caméra, qui est utilisée par FrameGraph lors du dessin des entités.

Propriété Documentation

camera : Qt3DCore::QEntity*

Maintient la caméra actuellement sélectionnée.

Fonctions d'accès :

Qt3DCore::QEntity *camera() const
void setCamera(Qt3DCore::QEntity *camera)

Signal de notification :

void cameraChanged(Qt3DCore::QEntity *camera)

Member Function Documentation

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

Le constructeur crée une instance avec l'adresse parent spécifiée.

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