Obsolete Members for Qt3DInput
Qt3DInput 类的以下成员已被废弃。提供这些成员是为了确保旧源代码能够继续运行。我们强烈建议不要在新代码中使用它们。
类
(deprecated) class | QAbstractActionInput |
(deprecated) class | QAbstractAxisInput |
(deprecated) class | QAbstractPhysicalDevice |
(deprecated) class | QAction |
(deprecated) class | QActionInput |
(deprecated) class | QAnalogAxisInput |
(deprecated) class | QAxis |
(deprecated) class | QAxisAccumulator |
(deprecated) class | QAxisSetting |
(deprecated) class | QButtonAxisInput |
(deprecated) class | QInputAspect |
(deprecated) class | QInputChord |
(deprecated) class | QInputSequence |
(deprecated) class | QInputSettings |
(deprecated) class | QKeyEvent |
(deprecated) class | QKeyboardDevice |
(deprecated) class | QKeyboardHandler |
(deprecated) class | QLogicalDevice |
(deprecated) class | QMouseDevice |
(deprecated) class | QMouseEvent |
(deprecated) class | QMouseHandler |
(deprecated) class | QWheelEvent |
类类
[deprecated] class Qt3DInput::QAbstractActionInput
该类已弃用。我们强烈建议不要在新代码中使用它。
[deprecated] class Qt3DInput::QAbstractAxisInput
该类已弃用。我们强烈建议不要在新代码中使用它。
[deprecated] class Qt3DInput::QAbstractPhysicalDevice
该类已弃用。我们强烈建议不要在新代码中使用它。
[deprecated] class Qt3DInput::QAction
该类已弃用。我们强烈建议不要在新代码中使用它。
[deprecated] class Qt3DInput::QActionInput
该类已弃用。我们强烈建议不要在新代码中使用它。
[deprecated] class Qt3DInput::QAnalogAxisInput
该类已弃用。我们强烈建议不要在新代码中使用它。
[deprecated] class Qt3DInput::QAxis
该类已弃用。我们强烈建议不要在新代码中使用它。
使用parent 创建一个新的QAxis实例。
[deprecated] class Qt3DInput::QAxisAccumulator
该类已弃用。我们强烈建议不要在新代码中使用它。
使用parent 构建一个新的QAxisAccumulator实例。
Qt3DInput::QAxis 用于报告输入设备上某个轴的当前位置。 当轴返回中性位置时,该轴的值将恢复为0。通常,需要让轴的输入以其他方式控制变量,例如将Qt3DInput::QAxis 的值视为速度(对时间的第一次导数)或加速度(对时间的第二次导数)。 这可以通过用户代码或Qt3DLogic::QFrameAction 实现,但这些方法并不理想,因为它们会给主线程增加更多工作量,且本质上属于命令式编程。Qt3DInput::QAxisAccumulator 类允许在Qt 3D 后端以声明式的方式实现这一常见任务。
[deprecated] class Qt3DInput::QAxisSetting
该类已弃用。我们强烈建议不要在新的代码中使用它。
存储与该轴相关的死区,并定义是否启用平滑处理
[deprecated] class Qt3DInput::QButtonAxisInput
该类已被废弃。我们强烈建议不要在新代码中使用它。
[deprecated] class Qt3DInput::QInputAspect
该类已弃用。我们强烈建议不要在新的代码中使用它。
QInputAspect 负责创建物理设备。它还负责根据当前的输入设置,建立在特定时间运行的任务。
[deprecated] class Qt3DInput::QInputChord
该类已弃用。我们强烈建议不要在新代码中使用它。
[deprecated] class Qt3DInput::QInputSequence
该类已弃用。我们强烈建议不要在新代码中使用它。
[deprecated] class Qt3DInput::QInputSettings
该类已弃用。我们强烈建议不要在新代码中使用它。
必须将 QInputSettings 组件设置为场景根实体的组件。它存储指向作为输入事件源的对象的指针,这些事件将由各种输入类进行处理。例如,QWindow 实例可以作为事件源。
另请参阅 QMouseDevice 和QKeyboardDevice 。
[deprecated] class Qt3DInput::QKeyEvent
该类已弃用。我们强烈建议不要在新的代码中使用它。
[deprecated] class Qt3DInput::QKeyboardDevice
该类已弃用。我们强烈建议不要在新代码中使用它。
[deprecated] class Qt3DInput::QKeyboardHandler
该类已弃用。我们强烈建议不要在新代码中使用它。
[deprecated] class Qt3DInput::QLogicalDevice
该类已被废弃。我们强烈建议不要在新代码中使用它。
[deprecated] class Qt3DInput::QMouseDevice
该类已弃用。我们强烈建议不要在新代码中使用它。
QMouseDevice 类将物理鼠标设备发出的鼠标事件转发给QMouseHandler 对象。可通过QMouseDevice::sensitivity 属性控制鼠标灵敏度,该属性指定了逻辑鼠标坐标响应物理鼠标移动而发生变化的速率。
另请参阅 QMouseHandler 。
[deprecated] class Qt3DInput::QMouseEvent
该类已弃用。我们强烈建议不要在新代码中使用它。
当鼠标按钮被按下,且从鼠标位置出发、穿过视图的光线与场景中的一个或多个元素相交时,会触发鼠标事件。
另请参阅 QKeyEvent 、QWheelEvent 以及QMouseHandler 。
[deprecated] class Qt3DInput::QMouseHandler
该类已弃用。我们强烈建议不要在新代码中使用它。
注意: 不应共享QMouseHandler 组件,若不遵守此条件,极有可能导致行为不可预测。
另请参阅 QMouseDevice 和QMouseEvent 。
[deprecated] class Qt3DInput::QWheelEvent
该类已弃用。我们强烈建议不要在新代码中使用它。
当鼠标滚轮转动时,会触发鼠标滚轮事件。
另请参阅 QKeyEvent 、QMouseEvent 以及QMouseHandler 。
© 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.