[Qt-3d] How to perform Picking in Qt3D

Mülner, Helmut helmut.muelner at joanneum.at
Wed Jun 13 09:31:06 CEST 2012



 > I've already have a couple of examples on how to perform picking using native OpenGL.

 > Can anyone tell me how to do it using Qt3D? And QtQuick3D?
 > From what i saw on the code, it partly involves registering "picking nodes" on a QGLView.
Picking in QtQuick3D is done by setting the property "picking" of the Viewport element to true.
(see http://doc.qt.nokia.com/qt-quick3d-snapshot/qml-viewport.html).

 > Are there any 'helloworld'-ish examples available for this?
Demos where picking is set to true, are: robobounce and teaservice.

With Qt3D you use QGLView::registerObject and QGLView::objectForPoint .

--
Helmut



More information about the Qt-3d mailing list