PySide6.Qt3DInput.Qt3DInput.QAxisSetting¶
- class QAxisSetting¶
QAxisSetting存储指定轴列表的设置。更多…概要¶
属性¶
方法¶
def
__init__()def
axes()def
deadZoneRadius()
插槽¶
def
setAxes()
信号¶
def
axesChanged()def
smoothChanged()
注意
本文档可能包含从C++自动翻译到Python的代码片段。我们始终欢迎对代码片段翻译的贡献。如果您发现翻译问题,您也可以通过在我们的https:/bugreports.qt.io/projects/PYSIDE上创建工单来告知我们。
详细描述¶
存储与此轴相关的死区,并定义是否启用平滑
注意
当使用
from __feature__ import true_property时,属性可以直接使用,否则通过访问器函数使用。- property axesᅟ: list of int¶
- Access functions:
- property deadZoneRadiusᅟ: float¶
- Access functions:
- property smoothᅟ: bool¶
- Access functions:
- __init__([parent=None])¶
- Parameters:
parent –
QNode
使用
parent构造一个新的QAxisSetting实例。- axes()¶
- Return type:
整数列表
QAxisSetting::axes 返回这些设置当前应用的轴列表。
另请参阅
setAxes()属性
axesᅟ的获取器。- axesChanged(axes)¶
- Parameters:
axes – .整数列表
当与轴设置关联的轴更改为
axes时,会发出此信号。属性
axesᅟ的通知信号。- deadZoneRadius()¶
- Return type:
浮点数
QAxisSetting::deadZoneRadius 返回设置的死区半径。
另请参阅
setDeadZoneRadius()属性
deadZoneRadiusᅟ的获取器。- deadZoneRadiusChanged(deadZoneRadius)¶
- Parameters:
deadZoneRadius – 浮点数
当与轴设置相关的死区半径更改为
deadZoneRadius时,会发出此信号。属性
deadZoneRadiusᅟ的通知信号。- isSmoothEnabled()¶
- Return type:
布尔
QAxisSetting::isSmoothEnabled 返回是否启用了平滑功能。
属性
smoothᅟ的获取器。- setAxes(axes)¶
- Parameters:
axes – .整数列表
将
QAxisSetting实例的当前轴设置为axes。另请参阅
axes()属性
axesᅟ的设置器。- setDeadZoneRadius(deadZoneRadius)¶
- Parameters:
deadZoneRadius – 浮点数
将
QAxisSetting实例的当前死区半径设置为deadZoneRadius。另请参阅
deadZoneRadius()属性
deadZoneRadiusᅟ的设置器。- setSmoothEnabled(enabled)¶
- Parameters:
enabled – 布尔值
将QAxisSettings平滑的当前状态设置为
enabled。另请参阅
isSmoothEnabled()属性
smoothᅟ的设置器。- smoothChanged(smooth)¶
- Parameters:
smooth – 布尔值
当平滑状态更改为
smooth时,会发出此信号。属性
smoothᅟ的通知信号。