Qt3DCore::QCoreSettings Class

class Qt3DCore::QCoreSettings

QCoreSettings 类保存与核心数据处理流程相关的设置。更多

Header: #include <QCoreSettings>
CMake.QCoreSettings find_package(Qt6 REQUIRED COMPONENTS 3DCore)
target_link_libraries(mytarget PRIVATE Qt6::3DCore)
qmake: QT += 3dcore
Qt 6.0
在 QML 中: CoreSettings
继承于 Qt3DCore::QComponent
状态:已废弃

属性

公共功能

QCoreSettings(Qt3DCore::QNode *parent = nullptr)
bool boundingVolumesEnabled() const

公共插槽

void setBoundingVolumesEnabled(bool boundingVolumesEnabled)

信号

void boundingVolumesEnabledChanged(bool boundingVolumesEnabled)

详细说明

QCoreSettings 组件应被设置为场景根实体的组件(尽管它可以在场景图中的任何位置)。它应该只有一个实例。

它可用于控制Qt 3D 的某些行为。

属性文档

boundingVolumesEnabled : bool

表示是否启用边界卷处理。默认情况下为真。禁用此选项可以减少每帧的计算量。如果使用拾取或挫边剔除,则应保持启用(即使使用QBoundingVolume 提供明确的边界卷积尺寸也是如此)。

访问功能:

bool boundingVolumesEnabled() const
void setBoundingVolumesEnabled(bool boundingVolumesEnabled)

Notifier 信号:

void boundingVolumesEnabledChanged(bool boundingVolumesEnabled)

成员函数文档

[explicit] QCoreSettings::QCoreSettings(Qt3DCore::QNode *parent = nullptr)

使用parent 构建一个新的 QCoreSettings。

© 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.