本页内容

Qt3DInput::QAnalogAxisInput Class

class Qt3DInput::QAnalogAxisInput

由模拟输入控制的轴输入。该轴值的控制方式与传统模拟输入(如操纵杆)类似。更多...

标题: #include <Qt3DInput/QAnalogAxisInput>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3dinput)
target_link_libraries(mytarget PRIVATE Qt6::3dinput)
qmake: QT += 3dinput
在 QML 中: AnalogAxisInput
继承自: Qt3DInput::QAbstractAxisInput
状态: 已弃用

该类已弃用。我们强烈建议不要在新代码中使用它。

属性

公共函数

QAnalogAxisInput(Qt3DCore::QNode *parent = nullptr)
int axis() const

公共槽位

void setAxis(int axis)

信号

void axisChanged(int axis)

详细说明

属性文档

axis : int

模拟输入的轴。

访问功能:

int axis() const
void setAxis(int axis)

通知信号:

void axisChanged(int axis)

另请参阅 Qt3DInput::QMouseDevice::Axis 。

成员函数文档

[explicit] QAnalogAxisInput::QAnalogAxisInput(Qt3DCore::QNode *parent = nullptr)

使用parent 创建一个新的 QAnalogAxisInput 实例。

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