> 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.
>
> I have customized WebPage::acceptNavigationRequest,

That's definitely not how you do it. See Noam's example:
http://labs.qt.nokia.com/2010/11/16/some-webkit-hybrid-stuff/ for the
proper way to implement this idea.


-- 
Ariya Hidayat
http://www.linkedin.com/in/ariyahidayat
_______________________________________________
webkit-qt mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-qt

Reply via email to