[PyKDE] Render widgets to canvas/buffer

Diez B. Roggisch deets at web.de
Fri Apr 22 14:25:03 BST 2005

Am Friday, 22. April 2005 15:00 schrieb Diez B. Roggisch:
> Hi,
> this is more of a Qt-question I believe, but I'll ask here anyway - maybe
> someone on this list has done it before. And google didn't help me so far.
> I'm looking for a way to draw my widgets to a canvas so that I can create
> "snapshots" of my widgets.
> The overall goal is to create a toolchain so that I can update my
> applications docs with the real widgets instead of hand-made snapshots that
> are automatically outdating.
> Any suggestions?

Just for the record: It's QPixmap.grabWidget() that does the trick. Neat.


More information about the PyQt mailing list