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

2013-07-18 Thread Olivier Tilloy
Alberto Mardegan a écrit : 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 WebviewTh

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

2013-07-18 Thread Alberto Mardegan
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 name

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

2013-07-14 Thread Olivier Tilloy
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 reques

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

2013-05-24 Thread Olivier Tilloy
On 2013-05-23, Jocelyn Turcotte wrote: Hello, if you want a QImage you should have a look at QQuickWindow::grabWindow(). It only works on the whole scene, so currently you would have to cut the part that interests you out of the QImage. Thanks for the pointer. The documentation for this meth

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

2013-05-23 Thread Jocelyn Turcotte
Hello, if you want a QImage you should have a look at QQuickWindow::grabWindow(). It only works on the whole scene, so currently you would have to cut the part that interests you out of the QImage. Cheers, Jocelyn On Thu, May 23, 2013 at 09:20:18AM +0200, Martin Leutelt wrote: > Hi Olivier,  >

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

2013-05-23 Thread Martin Leutelt
Hi Olivier,    I guess that what you want to do could be achieved in several ways, depending on which version of Qt/QML you're using. Assuming you're using QtQuick1: - write a QML-Plugin in which you create a custom painter that writes to an image, then pass that custom painter to the paint method