QCameraSelector Class

class Qt3DRender ::QCameraSelector

Class to allow for selection of camera to be used. 更多...

头: #include <QCameraSelector>
CMake: find_package(Qt6 COMPONENTS 3drender REQUIRED)
target_link_libraries(mytarget PRIVATE Qt6::3drender)
qmake: QT += 3drender
Since: Qt 5.5
实例化: CameraSelector
继承: Qt3DRender::QFrameGraphNode

特性

公共函数

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

公共槽

void setCamera (Qt3DCore::QEntity * camera )

信号

void cameraChanged (Qt3DCore::QEntity * camera )

详细描述

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

特性文档编制

camera : Qt3DCore::QEntity *

Holds the currently selected camera.

访问函数:

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

通知程序信号:

void cameraChanged (Qt3DCore::QEntity * camera )

成员函数文档编制

QCameraSelector:: QCameraSelector ( Qt3DCore::QNode * parent = nullptr)

The constructor creates an instance with the specified parent .