本页内容

Axis QML Type

Qt3DInput::QAxis C++ 类的 QML 前端。更多内容...

Import Statement: import Qt3D.Input 2.12
In C++: QAxis
Status: Deprecated

此类型已弃用。我们强烈建议不要在新代码中使用它。

属性

详细说明

将一组会触发同一事件的 AbstractAxisInputs 关联起来。

属性文档

buttons : list<var>

可触发此操作的按钮

inputs : list<AbstractAxisInput>

可触发该轴的 AbstractAxisInput 列表。

scale : real

在累加时,用于对轴值进行缩放的倍数。这可以理解为该轴所能控制的最大速度或加速度。

value : int [read-only]

存储从 sourceAxis 累积而来的值。

velocity : real [read-only]

返回速度。如果 sourceAxisType 设置为 Velocity,则该值即为源轴的数值乘以缩放因子。如果 sourceAxisType 设置为 Acceleration,则会将源轴的数值作为加速度进行积分,从而计算出速度。

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