If you were asking more generally, see this discussion[1] on the WebKit mailing list, and these Qt links[2, 3] that I found in that thread.
[1] http://www.nabble.com/Webkit-capture-web-page-content-API-td...
[2] http://labs.trolltech.com/blogs/2008/11/03/thumbnail-preview...
[3] http://labs.trolltech.com/blogs/2009/01/15/capturing-web-pag...