PySide6.Qt3DCore.Qt3DCore.QCoreSettings¶
- class QCoreSettings¶
QCoreSettings类保存与核心数据处理过程相关的设置。更多…概要¶
属性¶
方法¶
def
__init__()
插槽¶
信号¶
注意
本文档可能包含从C++自动翻译到Python的代码片段。我们始终欢迎对代码片段翻译的贡献。如果您发现翻译问题,您也可以通过在我们的https:/bugreports.qt.io/projects/PYSIDE上创建工单来告知我们。
详细描述¶
QCoreSettings组件应设置为场景根实体的组件(尽管它可以位于场景图中的任何位置)。应该只有一个实例。它可以用来控制一些Qt 3D的行为。
注意
当使用
from __feature__ import true_property时,属性可以直接使用,否则通过访问器函数使用。- property boundingVolumesEnabledᅟ: bool¶
控制是否启用边界体积处理。默认情况下,这是启用的。禁用此选项可以减少每帧执行的计算量。如果您正在使用拾取或视锥剔除,您应该保持此选项启用(即使在使用
QBoundingVolume提供显式边界体积大小时也是如此)。- Access functions:
- __init__([parent=None])¶
- Parameters:
parent –
QNode
使用
parent构造一个新的QCoreSettings。- boundingVolumesEnabled()¶
- Return type:
布尔
另请参阅
setBoundingVolumesEnabled()
属性
boundingVolumesEnabledᅟ的获取器。- boundingVolumesEnabledChanged(boundingVolumesEnabled)¶
- Parameters:
boundingVolumesEnabled – 布尔值
属性
boundingVolumesEnabledᅟ的通知信号。- setBoundingVolumesEnabled(boundingVolumesEnabled)¶
- Parameters:
boundingVolumesEnabled – 布尔值
另请参阅
boundingVolumesEnabled()
属性
boundingVolumesEnabledᅟ的设置器。