I've seen Qt widgets embedded into a QGraphicsView. What I'd like to do is draw QWidgets inside a OpenGL application.
In general, the code will setup the OpenGL scene and transformations, then ask a widget to paint itself using OpenGL. I know there are OpenGL paint engines, I just don't know how to setup the painting devices to have the widget paint inside of a larger OpenGL app.
In practice, this could be done inside of a QGLWidget. In the paintGL routine, it'll do the opengl calls it needs, and at the appropriate time, setup a opengl paint engine and draw the widget, then finish the GL drawing.
Can someone tell me if this is something I can do?
John
Bookmarks