Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    No GL output on 2nd QGLWidget

    General and Desktop
    1
    1
    487
    Loading More Posts
    • 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.
    • S
      scoobydoo last edited by

      I'm having trouble getting a two seperate QGLWidget views working. They're two widgets in a GridLayout.

      My idea was to use the first QGLWidget to setup everything and then share that widget with another QGLWidget using the share option in the constructor ( const QGLWidget * shareWidget ) so that i can share VBOs, shaders etc

      The main QGLWidget works fine. I see my GL output. But i see nothing at all in the second QGLWidget (even though the paintGL method gets called), not even the glClear changes the window background.

      Any pointers to what could be wrong much appreciated.

      1 Reply Last reply Reply Quote 0
      • First post
        Last post