Class to allow for selection of camera to be used. 更多...
头: | #include <QCameraSelector> |
CMake: |
find_package(Qt6 REQUIRED COMPONENTS 3drender)
target_link_libraries(mytarget PRIVATE Qt6::3drender) |
qmake: | QT += 3drender |
实例化: | 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.
Holds the currently selected camera.
访问函数:
Qt3DCore::QEntity * | camera () const |
void | setCamera (Qt3DCore::QEntity * camera ) |
通知程序信号:
void | cameraChanged (Qt3DCore::QEntity * camera ) |
[explicit]
QCameraSelector::
QCameraSelector
(
Qt3DCore::QNode
*
parent
= nullptr)
The constructor creates an instance with the specified parent .