I've tried to share the contexts, but it's been unsuccessful. This is the last thing I did:
. . .
wVolume = new Rendering(mainWidget);
cx
= new QGLContext(wVolume
->context
()->format
());
wPlane1 = new Rendering(cx, framePlane1, wVolumen);
wPlane2 = new Rendering(cx, framePlane2, wVolumen);
. . .
QGLContext *cx;
. . .
wVolume = new Rendering(mainWidget);
cx = new QGLContext(wVolume->context()->format());
wPlane1 = new Rendering(cx, framePlane1, wVolumen);
wPlane2 = new Rendering(cx, framePlane2, wVolumen);
. . .
To copy to clipboard, switch view to plain text mode
Why I can access to the texture from wVolume but no from wPlane1, wPlane2, ... ?
In the thread "Texture + Multiple QGLWidgets" KShots gave me some suggest. Take a look around.
Bookmarks