<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- qpickevent.cpp --> <title>PickEvent QML Type | Qt 3D 5.11</title> <link rel="stylesheet" type="text/css" href="style/offline-simple.css" /> <script type="text/javascript"> document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css"); // loading style sheet breaks anchors that were jumped to before // so force jumping to anchor again setTimeout(function() { var anchor = location.hash; // need to jump to different anchor first (e.g. none) location.hash = "#"; setTimeout(function() { location.hash = anchor; }, 0); }, 0); </script> </head> <body> <div class="header" id="qtdocheader"> <div class="main"> <div class="main-rounded"> <div class="navigationbar"> <table><tr> <td ><a href="../qtdoc/index.html">Qt 5.11</a></td><td ><a href="qt3d-index.html">Qt 3D</a></td><td ><a href="qt3d-qml.html">QML Types</a></td><td >PickEvent QML Type</td></tr></table><table class="buildversion"><tr> <td id="buildversion" width="100%" align="right">Qt 5.11.2 Reference Documentation</td> </tr></table> </div> </div> <div class="content"> <div class="line"> <div class="content mainContent"> <div class="sidebar"> <div class="toc"> <h3><a name="toc">Contents</a></h3> <ul> <li class="level1"><a href="#properties">Properties</a></li> <li class="level1"><a href="#details">Detailed Description</a></li> </ul> </div> <div class="sidebar-content" id="sidebar-content"></div></div> <h1 class="title">PickEvent QML Type</h1> <span class="subtitle"></span> <!-- $$$PickEvent-brief --> <p><a href="qml-qt3d-render-pickevent.html">PickEvent</a> holds information when an object is picked. This is received as a parameter in most of the QObjectPicker component signals when picking succeeds. <a href="#details">More...</a></p> <!-- @@@PickEvent --> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft rightAlign topAlign"> Import Statement:</td><td class="memItemRight bottomAlign"> import Qt3D.Render 2.0</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Instantiates:</td><td class="memItemRight bottomAlign"> <a href="qml-qt3d-render-pickevent.html"><a href="qt3drender-qpickevent.html">QPickEvent</a></td></tr></table></div><ul> <li><a href="qml-qt3d-render-pickevent-members.html">List of all members, including inherited members</a></li> </ul> <a name="properties"></a> <h2 id="properties">Properties</h2> <ul> <li class="fn"><b><b><a href="qml-qt3d-render-pickevent.html#accepted-prop">accepted</a></b></b> : bool</li> <li class="fn"><b><b><a href="qml-qt3d-render-pickevent.html#button-prop">button</a></b></b> : int</li> <li class="fn"><b><b><a href="qml-qt3d-render-pickevent.html#buttons-prop">buttons</a></b></b> : int</li> <li class="fn"><b><b><a href="qml-qt3d-render-pickevent.html#distance-prop">distance</a></b></b> : real</li> <li class="fn"><b><b><a href="qml-qt3d-render-pickevent.html#localIntersection-prop">localIntersection</a></b></b> : Vector3D</li> <li class="fn"><b><b><a href="qml-qt3d-render-pickevent.html#modifiers-prop">modifiers</a></b></b> : int</li> <li class="fn"><b><b><a href="qml-qt3d-render-pickevent.html#position-prop">position</a></b></b> : Point2D</li> <li class="fn"><b><b><a href="qml-qt3d-render-pickevent.html#worldIntersection-prop">worldIntersection</a></b></b> : Vector3D</li> </ul> <!-- $$$PickEvent-description --> <a name="details"></a> <h2 id="details">Detailed Description</h2> <p><b>See also </b><a href="qml-qt3d-render-objectpicker.html">ObjectPicker</a> and <a href="qml-qt3d-render-pickingsettings.html">PickingSettings</a>.</p> <!-- @@@PickEvent --> <h2>Property Documentation</h2> <!-- $$$accepted --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="accepted-prop"> <td class="tblQmlPropNode"><p> <a name="accepted-prop"></a><span class="name">accepted</span> : <span class="type"><a href="../qtqml/qml-bool.html">bool</a></span></p></td></tr> </table></div> </div><div class="qmldoc"><p>Specifies if event has been accepted</p> </div></div><!-- @@@accepted --> <br/> <!-- $$$button --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="button-prop"> <td class="tblQmlPropNode"><p> <a name="button-prop"></a><span class="name">button</span> : <span class="type"><a href="../qtqml/qml-int.html">int</a></span></p></td></tr> </table></div> </div><div class="qmldoc"><p>Specifies mouse button that caused the event</p> </div></div><!-- @@@button --> <br/> <!-- $$$buttons --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="buttons-prop"> <td class="tblQmlPropNode"><p> <a name="buttons-prop"></a><span class="name">buttons</span> : <span class="type"><a href="../qtqml/qml-int.html">int</a></span></p></td></tr> </table></div> </div><div class="qmldoc"><p>Specifies state of the mouse buttons for the event</p> </div></div><!-- @@@buttons --> <br/> <!-- $$$distance --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="distance-prop"> <td class="tblQmlPropNode"><p> <a name="distance-prop"></a><span class="name">distance</span> : <span class="type"><a href="../qtqml/qml-real.html">real</a></span></p></td></tr> </table></div> </div><div class="qmldoc"><p>Specifies the distance of the hit to the camera</p> </div></div><!-- @@@distance --> <br/> <!-- $$$localIntersection --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="localIntersection-prop"> <td class="tblQmlPropNode"><p> <a name="localIntersection-prop"></a><span class="name">localIntersection</span> : <span class="type">Vector3D</span></p></td></tr> </table></div> </div><div class="qmldoc"><p>Specifies the coordinates of the hit in the local coordinate system of the picked entity</p> </div></div><!-- @@@localIntersection --> <br/> <!-- $$$modifiers --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="modifiers-prop"> <td class="tblQmlPropNode"><p> <a name="modifiers-prop"></a><span class="name">modifiers</span> : <span class="type"><a href="../qtqml/qml-int.html">int</a></span></p></td></tr> </table></div> </div><div class="qmldoc"><p>Specifies state of the mouse buttons for the event</p> </div></div><!-- @@@modifiers --> <br/> <!-- $$$position --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="position-prop"> <td class="tblQmlPropNode"><p> <a name="position-prop"></a><span class="name">position</span> : <span class="type">Point2D</span></p></td></tr> </table></div> </div><div class="qmldoc"><p>Specifies the mouse position with respect to the render area (window or quick item)</p> </div></div><!-- @@@position --> <br/> <!-- $$$worldIntersection --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="worldIntersection-prop"> <td class="tblQmlPropNode"><p> <a name="worldIntersection-prop"></a><span class="name">worldIntersection</span> : <span class="type">Vector3D</span></p></td></tr> </table></div> </div><div class="qmldoc"><p>Specifies the coordinates of the hit in world coordinate system</p> </div></div><!-- @@@worldIntersection --> <br/> </div> </div> </div> </div> </div> <div class="footer"> <p> <acronym title="Copyright">©</acronym> 2018 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners.<br/> The documentation provided herein is licensed under the terms of the <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation License version 1.3</a> as published by the Free Software Foundation.<br/> Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners. </p> </div> </body> </html>