Qt3DInput::QAbstractPhysicalDeviceProxy Class

class Qt3DInput::QAbstractPhysicalDeviceProxy

Qt3DInput::QAbstractPhysicalDeviceProxy 作为实际 Qt3DInput::QQAbstractPhysicalDevice 设备的代理。更多

头文件: #include <QAbstractPhysicalDeviceProxy>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3dinput)
target_link_libraries(mytarget PRIVATE Qt6::3dinput)
qmake: QT += 3dinput
继承: Qt3DInput::QAbstractPhysicalDevice
状态:已废弃

公共函数

QString deviceName() const
Qt3DInput::QAbstractPhysicalDeviceProxy::DeviceStatus status() const

信号

void statusChanged(Qt3DInput::QAbstractPhysicalDeviceProxy::DeviceStatus status)

详细说明

Qt3DInput::QAbstractPhysicalDeviceProxy 可用于向用户展示物理设备。它减轻了根据轴和按钮的名称对其进行内省的需要。

它通常通过子类化来使用,允许设置设备名称并为目标设备的各种轴和按钮定义枚举。

运行时,状态属性将被更新,以反映是否可以创建与设备名称匹配的实际设备。

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