Qt 5.9 | Qt 3D | QML Types | PickingSettings QML Type

Qt 5.9.3 Reference Documentation

# PickingSettings QML Type

The PickingSettings class specifies how entity picking is handled. More...

Import Statement: | import Qt3D.Render 2.0
Since: | Qt 5.7
Instantiates: | QPickingSettings

- List of all members, including inherited members

## Properties

- faceOrientationPickingMode : enumeration
- pickMethod : enumeration
- pickResultMode : enumeration

## Detailed Description

The picking settings determine how the entity picking is handled. For more details about entity picking, see Qt3DRender::QObjectPicker component documentation.

Picking is triggered by mouse events. It will cast a ray through the scene and look for geometry intersecting the ray.

See also ObjectPicker.

## Property Documentation

faceOrientationPickingMode : enumeration

Specifies how face orientation affects triangle picking

- PickingSettings.FrontFace Only front-facing triangles will be picked (default).
- PickingSettings.BackFace Only back-facing triangles will be picked.
- PickingSettings.FrontAndBackFace Both front- and back-facing triangles will be picked.

pickMethod : enumeration

Holds the current pick method.

- PickingSettings.BoundingVolumePicking
- PickingSettings.TrianglePicking

See also Qt3DRender::QPickingSettings::PickMethod.

pickResultMode : enumeration

Holds the current pick results mode.

- PickingSettings.NearestPick
- PickingSettings.AllPicks

See also Qt3DRender::QPickingSettings::PickResultMode.