PickEvent QML Type

PickEvent holds information when an object is picked. This is received as a parameter in most of the QObjectPicker component signals when picking succeeds. 更多...

import 語句: import Qt3D.Render 2.12
實例化: QPickEvent

特性

詳細描述

另請參閱 ObjectPicker and PickingSettings .

特性文檔編製

accepted : bool

Specifies if event has been accepted

button : int

Specifies mouse button that caused the event

buttons : int

Specifies state of the mouse buttons for the event

distance : real

Specifies the distance of the hit to the camera

localIntersection : Vector3D

Specifies the coordinates of the hit in the local coordinate system of the picked entity

modifiers : int

Specifies state of the mouse buttons for the event

position : Point2D

Specifies the mouse position with respect to the render area (window or quick item)

worldIntersection : Vector3D

Specifies the coordinates of the hit in world coordinate system