PDA

View Full Version : is it possible to save a webpage as an image?



billconan
7th July 2008, 03:07
hi folks,

i need to fetch some web pages and save them as images. so i'm wondering if i can let the Qwebview control be drawn onto a picture?

thanks

JimDaniel
7th July 2008, 06:26
Read up on QPixmap::grabWidget() & QPixmap::grabWindow(). Probably will get it done.

yxmaomao
8th July 2008, 02:08
please refer to the QTableView 's source code , you can see how to save the screen as a bitmap
in table view when you move section, it will copy current screen