本页内容

WheelEvent QML Type

包含描述鼠标滚轮事件的参数。更多内容...

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

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

属性

详细说明

当鼠标滚轮旋转时,会触发鼠标滚轮事件。

另请参阅 KeyEvent 、MouseEvent 以及MouseHandler 。

属性文档

accepted : bool

指定鼠标滚轮事件是否已被接受

angleDelta : Point [read-only]

指定鼠标滚轮事件的滚轮角度变化量

buttons : int [read-only]

指定鼠标滚轮事件中(若存在)的按钮

modifiers : Modifiers [read-only]

指定是否对鼠标滚轮事件应用了任何修饰符

x : int [read-only]

指定鼠标滚轮事件的 X 坐标

y : int [read-only]

指定鼠标滚轮事件的 Y 坐标

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