本页内容

MouseDevice QML Type

将鼠标事件委托给关联的MouseHandler 对象。更多内容...

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

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

属性

详细说明

MouseDevice 对象将物理鼠标设备发出的鼠标事件委托给MouseHandler 对象。可以通过MouseDevice::sensitivity 属性控制鼠标的灵敏度,该属性指定了逻辑鼠标坐标响应物理鼠标移动而发生变化的速率。

另请参阅 MouseHandler 。

属性文档

sensitivity : real

保存鼠标设备的当前灵敏度。默认值为 0.1。

updateAxesContinuously : bool

如果true ,则无论是否按下任何鼠标按钮,坐标轴都会在发生变化时立即更新。否则,坐标轴仅在按下其中一个鼠标按钮时才会更新。

默认值为false 。

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