View Full Version : Screenshot with no show

21st June 2011, 12:01

I have a GLWidget (OpenGL) based window which is used for displaying chemical structures. I would like to use this window to generate thumbnails used as icons for the files containing the chemical structures.

I would like to hide this process of icon generation from the user, so is there any way that you can

Show/display a GLWidget/QWidget in some sort of virtual frame buffer, in such a way that is does NOT appear visual to the user.
Dump the contents of the invisible window into a pixmap.

Best regards,


21st June 2011, 12:12
QPixmap QGLWidget::renderPixmap ( int w = 0, int h = 0, bool useContext = false )