Selection in QOpenGLWidget
Unsolved
General and Desktop
-
I am trying to use Qt 5 and the
QOpenGLWidget
instead ofQGLWidget
from Qt 4 which is what I am familiar with. I have gotten most things to work in theQOpenGLWidget
but 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 andQOpenGLWidget
similar to this?Edit: Added code tags -- @Wieland