PySide6.Qt3DInput.Qt3DInput.QAxisSetting

class QAxisSetting

QAxisSetting 存储指定轴列表的设置。更多

PySide6.Qt3DInput.Qt3DInput.QAxisSetting 的继承图

概要

属性

方法

插槽

信号

注意

本文档可能包含从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:

parentQNode

使用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ᅟ 的通知信号。