Quantcast
Channel: Jobs
Viewing all articles
Browse latest Browse all 18427

No GL output on 2nd QGLWidget

$
0
0
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.

Viewing all articles
Browse latest Browse all 18427

Trending Articles