Qt3DInput::QAxisSetting Class
class Qt3DInput::QAxisSettingQAxisSetting 用于存储指定轴列表的设置。更多
头文件: | #include <QAxisSetting> |
CMake.QAxisSetting | find_package(Qt6 REQUIRED COMPONENTS 3dinput) target_link_libraries(mytarget PRIVATE Qt6::3dinput) |
qmake: | QT += 3dinput |
在 QML 中: | AxisSetting |
继承: | Qt3DCore::QNode |
状态: | 已废弃 |
属性
- axes : QList<int>
- deadZoneRadius : float
- smooth : bool
公共功能
QAxisSetting(Qt3DCore::QNode *parent = nullptr) | |
QList<int> | axes() const |
float | deadZoneRadius() const |
bool | isSmoothEnabled() const |
公共插槽
void | setAxes(const QList<int> &axes) |
void | setDeadZoneRadius(float deadZoneRadius) |
void | setSmoothEnabled(bool enabled) |
信号
void | axesChanged(const QList<int> &axes) |
void | deadZoneRadiusChanged(float deadZoneRadius) |
void | smoothChanged(bool smooth) |
属性文档
axes : QList<int>
访问功能
通知信号
void | axesChanged(const QList<int> &axes) |
deadZoneRadius : float
访问功能
float | deadZoneRadius() const |
void | setDeadZoneRadius(float deadZoneRadius) |
通知信号
void | deadZoneRadiusChanged(float deadZoneRadius) |
smooth : bool
访问功能
bool | isSmoothEnabled() const |
void | setSmoothEnabled(bool enabled) |
Notifier 信号:
void | smoothChanged(bool smooth) |
成员函数文档
[explicit]
QAxisSetting::QAxisSetting(Qt3DCore::QNode *parent = nullptr)
使用parent 构建一个新的 QAxisSetting 实例。
QList<int> QAxisSetting::axes() const
QAxisSetting::axes 返回这些设置适用的轴的当前列表。
注: 属性 axes 的获取函数。
另请参阅 setAxes().
[signal]
void QAxisSetting::axesChanged(const QList<int> &axes)
当与轴设置相关的轴更改为axes 时,将发出该信号。
注: 属性axes 的通知信号。
float QAxisSetting::deadZoneRadius() const
QAxisSetting::deadZoneRadius 返回设置的死区半径。
注: 属性 deadZoneRadius 的获取函数。
另请参阅 setDeadZoneRadius().
[signal]
void QAxisSetting::deadZoneRadiusChanged(float deadZoneRadius)
当与轴设置相关的死区半径更改为deadZoneRadius 时,将发出该信号。
注: 属性deadZoneRadius 的通知信号。
bool QAxisSetting::isSmoothEnabled() const
QAxisSetting::isSmoothEnabled 是否启用平滑返回值。
注: 属性smooth 的获取函数。
[slot]
void QAxisSetting::setAxes(const QList<int> &axes)
将QAxisSetting 实例的当前轴设置为axes 。
注: 属性axes 的设置函数。
另请参阅 axes() 。
[slot]
void QAxisSetting::setDeadZoneRadius(float deadZoneRadius)
将QAxisSetting 实例的当前死区半径设为deadZoneRadius 。
注: 属性deadZoneRadius 的设置函数。
另请参阅 deadZoneRadius() 。
[slot]
void QAxisSetting::setSmoothEnabled(bool enabled)
将 QAxisSettings 平滑设置的当前状态设置为enabled 。
注: 属性设置函数smooth 。
另请参阅 isSmoothEnabled() 。
[signal]
void QAxisSetting::smoothChanged(bool smooth)
当平滑状态更改为smooth 时会发出该信号。
注: 属性smooth 的通知信号。
© 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.