[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] Screenshot with no show
From:       David Boddie <david () boddie ! org ! uk>
Date:       2011-06-21 18:16:24
Message-ID: 201106212016.29978.david () boddie ! org ! uk
[Download RAW message or body]

On Tue Jun 21 10:40:56 BST 2011, Mads Ipsen wrote:

> 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.

You probably want to look at the QGLPixelBuffer class and the associated
example (which is only available in C++...) for inspiration:

  http://doc.qt.nokia.com/4.7/qglpixelbuffer.html

David
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic