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. No GL output on 2nd QGLWidget
QtWS25 Last Chance

No GL output on 2nd QGLWidget

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 532 Views
  • 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 Offline
    S Offline
    scoobydoo
    wrote on last edited by
    #1

    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
    0

    • Login

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