How to add a QGLWidget into a QGraphicsView?
-
Recently, I work on some widget with OpenGL, so I use some subclass of QGLWidget which work nicely on another application. When I add this widget to QGraphicsView, it turn nothing on it. With web site search result, I read the artical like this:
http://forum.qt.io/topic/47178/qglwidget-to-qopenglwidget-only-background-no-objects-etc
http://www.qtcentre.org/archive/index.php/t-20669.htmland I do as those artical instruction, set QGLWidget as QGraphicsView's Viewport with function "setViewport", but no luck wtih me.
Is there some step I missing or Windows didn't support this? or some error I didn't noticed?
Is anybody know how to add QGLWidget into QGraphicsView and make it work properly? Any information will be thankful.