mAzE
18th October 2006, 12:46
Hi there,
I've got a problem saving my scene from a subclassed GLWidget to a file. In my app there are some simple objects (polygons) filled with a texture. When I call
QPixmap outPM = glwindow->renderPixmap(2048,1536);
outPM.save(picFile, "JPG", 100);
all I get are the background (no texture, just color and some lines) and the outline of the polygons, but no texture. As I read in other threads all my objects are rendered fom paintGL() and initializeGL() is called either. Some textures are added dynamically during runtime. Is this a problem?
useCOntext won't help because it has to run under windows, too.
Any ideas?
TIA Ben
I've got a problem saving my scene from a subclassed GLWidget to a file. In my app there are some simple objects (polygons) filled with a texture. When I call
QPixmap outPM = glwindow->renderPixmap(2048,1536);
outPM.save(picFile, "JPG", 100);
all I get are the background (no texture, just color and some lines) and the outline of the polygons, but no texture. As I read in other threads all my objects are rendered fom paintGL() and initializeGL() is called either. Some textures are added dynamically during runtime. Is this a problem?
useCOntext won't help because it has to run under windows, too.
Any ideas?
TIA Ben