MouseEvent QML 類型

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

import 語句: import Qt3D.Input 2.8
在 C++: 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

指定若鼠標事件已被接受

button : Buttons [read-only]

指定觸發鼠標事件的按鈕

buttons : int [read-only]

指定觸發鼠標事件的按鈕

modifiers : Modifiers [read-only]

Specifies if any modifiers were applied to the mouse event

wasHeld : bool [read-only]

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

x : int [read-only]

Specifies The X coordinate of the mouse event

y : int [read-only]

Specifies The Y coordinate of the mouse event