<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[How to get the 3D coordinates of mouse position in Quick3D?]]></title><description><![CDATA[<p dir="auto">I would like to get the (x,y,z)<br />
coordinates of the 3D point under the <em>mouse cursor</em><br />
in <em>Quick3D</em>, but I could not find any easy method. I know how to do this in OpenGL by using <em>glReadPixels</em> with GL_DEPTH_COMPONENT and<br />
<em>gluUnProject</em>. The only method I could think of so far (not tested) is to call a C++ slot in the onClicked handler where I use QDeclarativeView3D::viewport() and cast the result to QGLWidget, which I use to construct a QGLPainter to get the worldMatrix() and the projectionMatrix(). But I do not yet know how to get the value of the depth buffer.</p>
<p dir="auto">Any suggestions or better ideas?</p>
]]></description><link>https://forum.qt.io/topic/16228/how-to-get-the-3d-coordinates-of-mouse-position-in-quick3d</link><generator>RSS for Node</generator><lastBuildDate>Tue, 22 Sep 2026 06:25:10 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/16228.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 26 Apr 2012 15:47:28 GMT</pubDate><ttl>60</ttl></channel></rss>