QPickEvent

PyQt5.Qt3DRender.QPickEvent

Inherits from QObject.

Inherited by QPickLineEvent, QPickPointEvent, QPickTriangleEvent.

Description

The QPickEvent class holds information when an object is picked.

This is received as a parameter in most of the QObjectPicker component signals when picking succeeds.

See also

QPickingSettings, QPickTriangleEvent, QObjectPicker.

Enums

Buttons

Member

Value

Description

BackButton

TODO

TODO

LeftButton

TODO

TODO

MiddleButton

TODO

TODO

NoButton

TODO

TODO

RightButton

TODO

TODO


Modifiers

Member

Value

Description

AltModifier

TODO

TODO

ControlModifier

TODO

TODO

KeypadModifier

TODO

TODO

MetaModifier

TODO

TODO

NoModifier

TODO

TODO

ShiftModifier

TODO

TODO

Methods

__init__()

TODO


__init__(Union[QPointF, QPoint], QVector3D, QVector3D, float)

TODO


__init__(Union[QPointF, QPoint], QVector3D, QVector3D, float, Buttons, int, int)

Constructs a new QPickEvent with the given parameters: position, worldIntersection, localIntersection, distance, button, buttons and modifiers


button() Buttons

QPickEvent::button Returns mouse button that caused the event


buttons() int

QPickEvent::buttons Returns bitfield to be used to check for mouse buttons that may be accompanying the pick event.


distance() float

QPickEvent::distance Returns distance from camera to pick point


entity() QEntity

TODO


isAccepted() bool
status:

todo

pysig:

c506ff134babdd6e68ab3e6350e95305

realname:

Qt3DRender::QPickEvent::isAccepted

realsig:

() const

digest:

cff9b193865ed7dce6441021f6574949

Returns true if the event has been accepted


localIntersection() QVector3D

QPickEvent::localIntersection Returns coordinates of the hit in the local coordinate system of the picked entity


modifiers() int

QPickEvent::modifiers Returns bitfield to be used to check for keyboard modifiers that may be accompanying the pick event.


position() QPointF

QPickEvent::position Returns mouse pointer coordinate of the pick query


setAccepted(bool)
status:

todo

pysig:

c506ff134babdd6e68ab3e6350e95305

realname:

Qt3DRender::QPickEvent::setAccepted

realsig:

(bool)

digest:

20d165948d94f8a6dee6d556f59bc8a0

set if the event has been accepted to accepted

See also

isAccepted().


viewport() QViewport

TODO


worldIntersection() QVector3D

QPickEvent::worldIntersection Returns coordinates of the hit in world coordinate system

Signals

acceptedChanged(bool)

TODO