Qt3DInput::QInputAspect Class
class Qt3DInput::QInputAspect负责制造实体设备并处理相关工作。更多...
| 标题: | #include <qinputaspect.h> |
| 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 。
注意:调用方 负责所有权管理。
© 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.