Qt3DInput::QAxis Class
class Qt3DInput::QAxisQAxis 存储用于触发输入事件的 QAbstractAxisInputs。更多内容...
| 头文件: | #include <qaxis.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3dinput) target_link_libraries(mytarget PRIVATE Qt6::3dinput) |
| qmake: | QT += 3dinput |
| 在 QML 中: | Axis |
| 继承自: | Qt3DCore::QNode |
| 状态: | 已弃用 |
该类已弃用。我们强烈建议不要在新代码中使用它。
属性
- value : float
公共函数
| QAxis(Qt3DCore::QNode *parent = nullptr) | |
| void | addInput(Qt3DInput::QAbstractAxisInput *input) |
| QList<Qt3DInput::QAbstractAxisInput *> | inputs() const |
| void | removeInput(Qt3DInput::QAbstractAxisInput *input) |
| float | value() const |
信号
| void | valueChanged(float value) |
成员函数文档
[explicit] QAxis::QAxis(Qt3DCore::QNode *parent = nullptr)
创建一个新的 QAxis 实例,其父对象为parent 。
void QAxis::addInput(Qt3DInput::QAbstractAxisInput *input)
QAxis::addInput 为该坐标轴添加一个input 。
另请参阅 Qt3DInput::QAbstractAxisInput 。
QList<Qt3DInput::QAbstractAxisInput *> QAxis::inputs() const
QAxis::inputs
返回添加到该坐标轴的所有输入的向量。
void QAxis::removeInput(Qt3DInput::QAbstractAxisInput *input)
QAxis::removeInput
从坐标轴中移除一个input 。
© 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.