[webkit-qt] Image capture of the contents of a QML WebView

Alberto Mardegan mardy at users.sourceforge.net
Thu Jul 18 00:18:26 PDT 2013


On 07/15/2013 09:40 AM, Olivier Tilloy wrote:
> An update on my work on generating thumbnails for web pages:
> 
> I solved my problem by writing a custom QQuickItem that, when updated,
> renders the webview into a FBO and saves the contents of that FBO to a
> file. The WebviewThumbnailer (as I named it) is not updated by default,
> it has to be requested explicitly. I’ve implemented it in the Ubuntu
> Touch web browser. For those interested, see the code here:

I recently found out about this:
http://qt-project.org/doc/qt-5.0/qtquick/qml-qtquick2-shadereffectsource.html

It doesn't save the image to a file, but it might still help you.

Ciao,
  Alberto

-- 
http://blog.mardy.it <- geek in un lingua international!


More information about the webkit-qt mailing list