Qt3DInput::QAxisSetting Class

class Qt3DInput::QAxisSetting

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

头文件: #include <QAxisSetting>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3dinput)
target_link_libraries(mytarget PRIVATE Qt6::3dinput)
qmake: QT += 3dinput
在 QML 中: AxisSetting
继承: Qt3DCore::QNode
状态:已废弃

属性

公共职能

QAxisSetting(Qt3DCore::QNode*parent= nullptr)
QList<int axes()常数
浮点数 deadZoneRadius() const
bool isSmoothEnabled() const

公共插槽

void setAxes(const QList<int>&axes)
void setDeadZoneRadius(floatdeadZoneRadius)
void setSmoothEnabled(boolenabled)

信号

void axesChanged(const QList<int>&axes)
void deadZoneRadiusChanged(floatdeadZoneRadius)
void smoothChanged平滑

详细说明

存储与该轴相关的死区,并定义是否启用平滑功能

财产文件

axes : QList<int>

访问功能:

QList<int axes()常数
void setAxes(const QList<int>&axes)

警报器信号:

void axesChanged(const QList<int>&axes)

deadZoneRadius : float

访问功能:

浮点数 deadZoneRadius() const
void setDeadZoneRadius(floatdeadZoneRadius)

警报器信号:

void deadZoneRadiusChanged(floatdeadZoneRadius)

smooth : bool

访问功能:

bool isSmoothEnabled() const
void setSmoothEnabled(boolenabled)

警报器信号:

void smoothChanged(boolsmooth)

成员函数文档

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