Qt3DRender::QCameraSelector Class
class Qt3DRender::QCameraSelector用于选择要使用的相机的类。更多
Header: | #include <QCameraSelector> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS 3drender) target_link_libraries(mytarget PRIVATE Qt6::3drender) |
qmake: | QT += 3drender |
在 QML 中: | 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) |
详细说明
Qt3DRender::QCameraSelector 可用于选择摄像机,FrameGraph 在绘制实体时会使用该摄像机。
属性文档
camera : Qt3DCore::QEntity*
保存当前选择的摄像机。
访问功能:
Qt3DCore::QEntity * | camera() const |
void | setCamera(Qt3DCore::QEntity *camera) |
Notifier 信号:
void | cameraChanged(Qt3DCore::QEntity *camera) |
成员函数 文档
[explicit]
QCameraSelector::QCameraSelector(Qt3DCore::QNode *parent = nullptr)
构造函数以指定的parent 创建一个实例。
© 2025 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.