Qt3DInput::QLogicalDevice Class

class Qt3DInput::QLogicalDevice

QLogicalDevice 允许用户定义一组他们希望在应用程序中使用的操作。更多

头文件: #include <QLogicalDevice>
CMake.QLogicalDevice find_package(Qt6 REQUIRED COMPONENTS 3dinput)
target_link_libraries(mytarget PRIVATE Qt6::3dinput)
qmake: QT += 3dinput
在 QML 中: LogicalDevice
继承: Qt3DCore::QComponent
状态:已废弃

公共函数

QLogicalDevice(Qt3DCore::QNode *parent = nullptr)
QList<Qt3DInput::QAction *> actions() const
void addAction(Qt3DInput::QAction *action)
void addAxis(Qt3DInput::QAxis *axis)
QList<Qt3DInput::QAxis *> axes() const
void removeAction(Qt3DInput::QAction *action)
void removeAxis(Qt3DInput::QAxis *axis)

详细说明

成员函数文档

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

构建一个新的 QLogicalDevice 实例,父节点parent

QList<Qt3DInput::QAction *> QLogicalDevice::actions() const

返回操作列表。

void QLogicalDevice::addAction(Qt3DInput::QAction *action)

在操作列表中添加action

void QLogicalDevice::addAxis(Qt3DInput::QAxis *axis)

在轴列表中添加axis

QList<Qt3DInput::QAxis *> QLogicalDevice::axes() const

返回轴的列表。

void QLogicalDevice::removeAction(Qt3DInput::QAction *action)

从操作列表中删除action

void QLogicalDevice::removeAxis(Qt3DInput::QAxis *axis)

从轴列表中删除axis

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