- Qt 6.4
- Qt 3D
- QML Types
- Qt3D.Render
- PickEvent
- Qt 6.4.3 Reference Documentation

# 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. More...

Import Statement: | import Qt3D.Render 2.4
Instantiates: | QPickEvent

- List of all members, including inherited members

## Properties

- accepted : bool
- button : int
- buttons : int
- distance : real
- entity : Entity
- localIntersection : Vector3D
- modifiers : int
- position : Point2D
- viewport : Viewport
- worldIntersection : Vector3D

## Detailed Description

See also ObjectPicker and PickingSettings.

## Property Documentation

accepted : bool

Specifies if event has been accepted

[read-only] button : int

Specifies mouse button that caused the event

[read-only] buttons : int

Specifies state of the mouse buttons for the event

[read-only] distance : real

Specifies the distance of the hit to the camera

[read-only, since 5.14] entity : Entity

The entity that the picked geometry belongs to.

If the object picker is not attached to a leaf node in the scene graph, this is useful to find which child entity was actually picked.

This property was introduced in Qt 5.14.

[read-only] localIntersection : Vector3D

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

[read-only] modifiers : int

Specifies state of the mouse buttons for the event

[read-only] position : Point2D

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

[read-only, since 5.14] viewport : Viewport

The viewport in which this event originated. A null value means the event originated from a frame graph branch without a Viewport. If a frame graph branch has a Viewport inside a Viewport the property will contain the leaf viewport.

This property was introduced in Qt 5.14.

[read-only] worldIntersection : Vector3D

Specifies the coordinates of the hit in world coordinate system