[Qt-interest] QGLWidget and off-screen rendering.

John Clayton johnclayton72 at gmail.com
Wed Nov 4 08:42:08 CET 2009


Hi All,

I'm trying to render the contents of a qgraphicsview offscreen.  To do  
this I've got a QGLWidget and overriden its paintGL() method.

Code for the resizeGL + paintGL is here:

	http://pastebin.com/d2fc5bd71

My problem is that because I never show() the QGLWidget, its size is  
never set - thus the resizeGL() code doesn't get called.

Is there a way to cause/force the resizeGL() method to be called,  
without showing the QGLWidget instance?

Thanks.
--
John Clayton



More information about the Qt-interest-old mailing list