Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Setting QGLWidget as viewport for a QGraphicsView causes freeze
Forum Updated to NodeBB v4.3 + New Features

Setting QGLWidget as viewport for a QGraphicsView causes freeze

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 548 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mrzl
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved