On 04/01/2011 12:04 PM, ext [email protected] wrote:
QWebView* webView;
webView->setPage(new WebPage);
webView->setHtml("<html> <head> </head> <body> <img
src='mydata://test.png'> </body> </html>");
The test.png was read into an instance of QImage from database.
The problem is how to make test.png displayed in the webView.

Why not making a subclass of QNetworkAccessManager to handle you own scheme by loading the data from the database?

This is the way the benchmark loads data, you should have a look at http://gitorious.org/qtwebkit/performance
It is probably close to your use case.

cheers,
Benjamin
_______________________________________________
webkit-qt mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-qt

Reply via email to