本页内容

Qt3DInput::QAbstractAxisInput Class

class Qt3DInput::QAbstractAxisInput

QAbstractActionInput 是所有 Axis 输入的基类。更多内容...

头文件: #include <Qt3DInput/QAbstractAxisInput>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3dinput)
target_link_libraries(mytarget PRIVATE Qt6::3dinput)
qmake: QT += 3dinput
继承自: Qt3DCore::QNode
继承自:

Qt3DInput::QAnalogAxisInput 以及Qt3DInput::QButtonAxisInput

状态: 已弃用

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

属性

公共函数

Qt3DInput::QAbstractPhysicalDevice *sourceDevice() const

公共槽位

void setSourceDevice(Qt3DInput::QAbstractPhysicalDevice *sourceDevice)

信号

void sourceDeviceChanged(Qt3DInput::QAbstractPhysicalDevice *sourceDevice)

详细说明

属性文档

sourceDevice : Qt3DInput::QAbstractPhysicalDevice*

QAbstractAxisInput 的源设备。

访问功能:

Qt3DInput::QAbstractPhysicalDevice *sourceDevice() const
void setSourceDevice(Qt3DInput::QAbstractPhysicalDevice *sourceDevice)

通知信号:

void sourceDeviceChanged(Qt3DInput::QAbstractPhysicalDevice *sourceDevice)

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