MouseEvent QML 类型

提供鼠标事件的描述参数。 更多...

导入语句: import Qt3D.Input 2.0
Since: Qt 5.5
实例化: QMouseEvent

特性

详细描述

Mouse events occur when a mouse button is pressed and the ray traversing the view, originating from the mouse position intersects with one or more elements of the scene.

另请参阅 KeyEvent , WheelEvent ,和 MouseHandler .

特性文档编制

accepted : bool

指定若鼠标事件已被接受


[read-only] button : Buttons

指定触发鼠标事件的按钮


[read-only] buttons : int

指定触发鼠标事件的按钮


[read-only] modifiers : Modifiers

Specifies if any modifiers were applied to the mouse event


[read-only] wasHeld : bool

Specifies if a mouse button was held down during the mouse event


[read-only] x : int

Specifies The X coordinate of the mouse event


[read-only] y : int

Specifies The Y coordinate of the mouse event