PDA

View Full Version : Save content of widget to pixmap



vql
4th April 2008, 16:58
On a widget, I add controls to widget. Please help me how to copy all contents of this widget to pixmap. Thanks.

aamer4yu
4th April 2008, 19:04
QPixmap::grabWindow might help you. Use it to make a pixmap of the widget.

For winId , you can use the QWidget::winId function. But it might have portabilities issues. Refer to the docs

Hope this helps :)

wysota
4th April 2008, 22:26
QPixmap::grabWidget() might be better than grabWindow.