Qt3DInput::QInputAspect Class
class Qt3DInput::QInputAspect负责创建物理设备和处理相关工作。更多
头文件: | #include <QInputAspect> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS 3dinput) target_link_libraries(mytarget PRIVATE Qt6::3dinput) |
qmake: | QT += 3dinput |
继承: | Qt3DCore::QAbstractAspect |
状态: | 已废弃 |
公共函数
QInputAspect(QObject *parent = nullptr) | |
QStringList | availablePhysicalDevices() const |
Qt3DInput::QAbstractPhysicalDevice * | createPhysicalDevice(const QString &name) |
成员函数文档
[explicit]
QInputAspect::QInputAspect(QObject *parent = nullptr)
使用parent 构建一个新的 QInputAspect。
QStringList QInputAspect::availablePhysicalDevices() const
返回所有可用物理设备的列表。
Qt3DInput::QAbstractPhysicalDevice *QInputAspect::createPhysicalDevice(const QString &name)
使用输入设备集成创建由name 标识的物理设备,如果未找到,则返回nullptr
。
注意: 调用者对所有权负责。
© 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.