Hi,

assuming in my application I have:

* a QWebView widget
* a QImage generated internally (i.e. not stored in any file)

I would like to find a way for the HTML set into the QWebView to access the image. Of course, I could save the image to a temporary file and reference the file in the src attribute of an img tag.

But, as I do not need to keep the image after having displayed it, I wonder if there is a way to access an in-memory Qt image, without passing via a disk file.

I played with the QWebFrame::addToJavaScriptWindowObject() function, but I could not figure out how to tell the img tag to look for its source at the object and not at a file.

Any idea?

Thanks,
M.