QCameraSelector Class

(Qt3DRender::QCameraSelector)

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

头文件: #include <QCameraSelector>
qmake: QT += 3drender
开始支持版本: Qt 5.5
Instantiated By: CameraSelector
基类: Qt3DRender::QFrameGraphNode

属性

  • camera : Qt3DCore::QEntity *

公有函数

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

公有槽函数

void setCamera(Qt3DCore::QEntity *camera)

信号

void cameraChanged(Qt3DCore::QEntity *camera)

受保护的函数

QCameraSelector(QCameraSelectorPrivate &dd, Qt3DCore::QNode *parent = nullptr)

其他继承的成员

  • 1 个公有变量继承自 QObject
  • 10 个静态公有成员继承自 QObject
  • 2 个受保护的变量继承自 QObject

详细描述

Class to allow for selection of camera to be used

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)

Notifier signal:

void cameraChanged(Qt3DCore::QEntity *camera)

成员函数

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

The constructor creates an instance with the specified parent.

[protected] QCameraSelector::QCameraSelector(QCameraSelectorPrivate &dd, Qt3DCore::QNode *parent = nullptr)

Copy constructor.