Setting QGLWidget as viewport for a QGraphicsView causes freeze
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.