Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Setting QGLWidget as viewport for a QGraphicsView causes freeze
mrzl last edited by
When I'm creating a QGraphicsView and try to set a QGLWidget as its viewport in order to render in opengl it freezes.
QGLWidget *glWidget = new QGLWidget(QGLFormat(QGL::SampleBuffers));
When I don't set the viewport the program runs perfectly, but this QGLWidget is very essential for my application. Am I missing any anything?
I'm using Windows7/8 with Qt 5.2.1 including OpenGL for VS2010.