Qt3DCore::QCoreSettings Class
class Qt3DCore::QCoreSettingsQCoreSettings 类包含与核心数据处理流程相关的设置。更多内容...
| 头文件: | #include <QCoreSettings> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3DCore) target_link_libraries(mytarget PRIVATE Qt6::3DCore) |
| qmake: | QT += 3dcore |
| 自: | Qt 6.0 |
| 在 QML 中: | CoreSettings |
| 继承自: | Qt3DCore::QComponent |
| 状态: | 已弃用 |
该类已弃用。我们强烈建议不要在新代码中使用它。
属性
- boundingVolumesEnabled : bool
公共函数
| QCoreSettings(Qt3DCore::QNode *parent = nullptr) | |
| bool | boundingVolumesEnabled() const |
公共槽位
| void | setBoundingVolumesEnabled(bool boundingVolumesEnabled) |
信号
| void | boundingVolumesEnabledChanged(bool boundingVolumesEnabled) |
属性文档
boundingVolumesEnabled : bool
表示是否启用了边界体积处理。默认值为 true。禁用此选项可减少每帧的计算量。如果您正在使用拾取或视锥体剔除,应保持此选项启用(即使使用 QBoundingVolume 显式指定了边界体积的大小)。
访问函数:
| bool | boundingVolumesEnabled() const |
| void | setBoundingVolumesEnabled(bool boundingVolumesEnabled) |
通知器信号:
| void | boundingVolumesEnabledChanged(bool boundingVolumesEnabled) |
成员函数文档
[explicit] QCoreSettings::QCoreSettings(Qt3DCore::QNode *parent = nullptr)
使用parent 构建一个新的QCoreSettings对象。
© 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.