Let me see if I understand your suggest and say what I understand of Qt & GL.
As I see, when I load my texture to the texture memory, it becomes available to the first QGLWidget what is created, and for that reason the others widgets can't access to the memory texture as the first one does, right?
What you propose is to create a first GLWidget with that "privilege" of accessing the texture memory and passes it as the shareWidget parameter to the others widgets (which displays some stuff) and to share with them that "privilege", right?
Following what you posted, I did this:
. . .
wVolume = new Rendering(mainWidget, central);
wPlane1 = new Rendering(frame1, central);
wplane2 = new Rendering(fram2, central);
. . .
QGLWidget *central = new QGLWidget(this);
. . .
wVolume = new Rendering(mainWidget, central);
wPlane1 = new Rendering(frame1, central);
wplane2 = new Rendering(fram2, central);
. . .
To copy to clipboard, switch view to plain text mode
where mainWidget is the main window of my app, and frame1 and frame2 contain wPlane1 and wPlane2 respectively.
Bookmarks