本页内容

Qt3DInput::QAxisSetting Class

class Qt3DInput::QAxisSetting

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

标题: #include <qaxissetting.h>
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() 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>

访问功能:

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

通知信号:

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)

通知器信号:

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的通知器 信号。

© 2026 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.