[KDE-India] Printing a Widget

Tejas Dinkar tejasdinkar at gmail.com
Sun Dec 24 08:07:43 CET 2006


On Sun, 24 Dec 2006, Prashanth Udupa sent out 1.2K bytes to say:
> You can take a look at QPixmap::grabWidget() for this. This function helps
> capture a snapshot of the widget into a pixmap which you can print
> on to a QPrinter object using a QPainter.
> 
> If you want to print a graphics scene. You can use the 
> QGraphicsScene::render()
> function. The documentation for this function has a printing example.

Hey Prashanth,

Thanks a lot for your speedy reply. I have a feeling that this is
exactly what I'm looking for :D

Thanks a lot :D
Tejas
-- 
Tejas Dinkar
http://gja.in


More information about the KDE-india mailing list