PDA

View Full Version : Using QGraphicsView with custom QGLWidget



jshafferman
2nd April 2014, 18:39
I am trying to use a QGraphicsScene and QGraphicsView which the latter's viewport is set to a custom QGLWidget, however I am unable to see any of my QGLWidget rendering performed by initializeGL() and paintGL(). How are you suppose to use a custom QGLWidget with a QGraphicsView/Scene? What functions should I overwrite and how do I avoid having to call all of my opengl calls in drawbackground and just use the custom QGLWidget to handle 3D rendering.