trskel
8th February 2008, 12:44
Hi all!
I want to render some OpenGLimages on a QGLWidget and then save them to disk using get_buffer() to grab the image to a QImage.
Ideally I would like the image not to be visible to the user while rendered , so I call hide() on the GL widget before doing the render, but then it seems that no OpenGL stuff is rendered because the resulting image is blank. Also, if the image is bigger than the screen, only the part that is within the screen limits gets rendered and the rest gets blank.
Is there any way to overcome this and force QGLWidget to render even in parts where it is not visible?
Thanks
I want to render some OpenGLimages on a QGLWidget and then save them to disk using get_buffer() to grab the image to a QImage.
Ideally I would like the image not to be visible to the user while rendered , so I call hide() on the GL widget before doing the render, but then it seems that no OpenGL stuff is rendered because the resulting image is blank. Also, if the image is bigger than the screen, only the part that is within the screen limits gets rendered and the rest gets blank.
Is there any way to overcome this and force QGLWidget to render even in parts where it is not visible?
Thanks