Selection in QOpenGLWidget
-
I am trying to use Qt 5 and the
QOpenGLWidgetinstead ofQGLWidgetfrom Qt 4 which is what I am familiar with. I have gotten most things to work in theQOpenGLWidgetbut I am unsure how to get process hits to work. That is, I want to double click on an object (e.g. a triangle in a mesh of triangles generated withglDrawArrays(GL_TRIANGLES, 0,numVerts ))and have it return the index of the triangle drawn. Is there anything with Qt 5 andQOpenGLWidgetsimilar to this?Edit: Added code tags -- @Wieland