MouseEvent QML 類型

提供鼠標事件的描述參數。 更多...

import 語句: 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