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));
    graphicsView->setViewport(glWidget);

    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.

    Thanks,
    mrzl


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.