QPickEvent Class▲
- 
					Header: QPickEvent 
- 
					CMake: find_package(Qt6 REQUIRED COMPONENTS 3drender) target_link_libraries(mytarget PRIVATE Qt6::3drender) 
- 
					qmake: QT += 3drender 
- 
					Inherited By: Qt3DRender::QPickLineEvent, Qt3DRender::QPickPointEvent, and Qt3DRender::QPickTriangleEvent 
- 
					Instantiated By: qml-qt3d-render-pickevent.xml 
- 
					Inherits: QObject 
- 
					Inherited By: Qt3DRender::QPickLineEvent, Qt3DRender::QPickPointEvent, and Qt3DRender::QPickTriangleEvent 
Detailed Description▲
This is received as a parameter in most of the QObjectPicker component signals when picking succeeds.
See Also▲
See also QPickingSettings, QPickTriangleEvent, QObjectPicker
Member Type Documentation▲
enum QPickEvent::Buttons▲
| Constant | |
|---|---|
| Qt3DRender::QPickEvent::LeftButton | Qt::LeftButton | 
| Qt3DRender::QPickEvent::RightButton | Qt::RightButton | 
| Qt3DRender::QPickEvent::MiddleButton | Qt::MiddleButton | 
| Qt3DRender::QPickEvent::BackButton | Qt::BackButton | 
| Qt3DRender::QPickEvent::NoButton | Qt::NoButton | 
enum QPickEvent::Modifiers▲
| Constant | |
|---|---|
| Qt3DRender::QPickEvent::NoModifier | Qt::NoModifier | 
| Qt3DRender::QPickEvent::ShiftModifier | Qt::ShiftModifier | 
| Qt3DRender::QPickEvent::ControlModifier | Qt::ControlModifier | 
| Qt3DRender::QPickEvent::AltModifier | Qt::AltModifier | 
| Qt3DRender::QPickEvent::MetaModifier | Qt::MetaModifier | 
| Qt3DRender::QPickEvent::KeypadModifier | Qt::KeypadModifier | 
Property Documentation▲
accepted : bool▲
Specifies if event has been accepted
Access functions:
- 
							bool isAccepted() const 
- 
							void setAccepted(bool accepted) 
Notifier signal:
- 
							void acceptedChanged(bool accepted) 
[read-only] button : const Qt3DRender::QPickEvent::Buttons▲
Access functions:
- 
							button() const 
[read-only] buttons : const int▲
Access functions:
- 
							int buttons() const 
[read-only] distance : const float▲
[read-only] entity : Qt3DCore::QEntity* const▲
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.
Access functions:
- 
							*entity() const 
[read-only] localIntersection : const QVector3D▲
Specifies the coordinates of the hit in the local coordinate system of the picked entity
Access functions:
- 
							localIntersection() const 
[read-only] modifiers : const int▲
[read-only] position : const QPointF▲
Specifies the mouse position with respect to the render area (window or quick item)
Access functions:
- 
							position() const 
[read-only] viewport : Qt3DRender::QViewport* const▲
The viewport in which this event originated. A null value means the event originated from a frame graph branch without a QViewport. If a frame graph branch has a Viewport inside a Viewport the property will contain the leaf viewport.
Access functions:
- 
							*viewport() const 
[read-only] worldIntersection : const QVector3D▲
Specifies the coordinates of the hit in world coordinate system
Access functions:
- 
							worldIntersection() const 
Member Function Documentation▲
QPickEvent::QPickEvent()▲
Constructs a new QPickEvent.
QPickEvent::QPickEvent(const QPointF &position, const QVector3D &intersection, const QVector3D &localIntersection, float distance)▲
Constructs a new QPickEvent with the given parameters: position, intersection, localIntersection and distance
QPickEvent::QPickEvent(const QPointF &position, const QVector3D &worldIntersection, const QVector3D &localIntersection, float distance, Qt3DRender::QPickEvent::Buttons button, int buttons, int modifiers)▲
Constructs a new QPickEvent with the given parameters: position, worldIntersection, localIntersection, distance, button, buttons and modifiers
Qt3DRender::QPickEvent::Buttons QPickEvent::button() const▲
Getter function for property button.
int QPickEvent::buttons() const▲
Getter function for property buttons.
float QPickEvent::distance() const▲
QPickEvent::distance Returns distance from camera to pick point
Getter function for property distance.
bool QPickEvent::isAccepted() const▲
QPickEvent::isAccepted Returns true if the event has been accepted
Getter function for property accepted.
QVector3D QPickEvent::localIntersection() const▲
QPickEvent::localIntersection Returns coordinates of the hit in the local coordinate system of the picked entity
Getter function for property localIntersection.
int QPickEvent::modifiers() const▲
QPickEvent::modifiers Returns bitfield to be used to check for keyboard modifiers that may be accompanying the pick event.
Getter function for property modifiers.
QPointF QPickEvent::position() const▲
QPickEvent::position Returns mouse pointer coordinate of the pick query
Getter function for property position.
void QPickEvent::setAccepted(bool accepted)▲
QPickEvent::setAccepted set if the event has been accepted to accepted
Setter function for property accepted.
See Also▲
See also isAccepted()
QVector3D QPickEvent::worldIntersection() const▲
QPickEvent::worldIntersection Returns coordinates of the hit in world coordinate system
Getter function for property worldIntersection.




