[Qt-interest] QWebView: howto embed a QPixmap into HTML code

Tony Rietwyk tony.rietwyk at rightsoft.com.au
Mon Mar 29 13:20:39 CEST 2010


> -----Original Message-----
> Hi everyone,
> 
> I managed to get QWebView to load an image from the resource 
> system via QWebView::setHtml(html, QUrl("qrc:/"));
> 
> Now I am facing another problem: I have a runtime-generated 
> QPixmap that I want to display in the QWebView. Is there any 
> way to achieve that other than saving it on the local file system?
> 
> Regards, Ulf


Hi Ulf, 

Have a look at QWebPluginFactory to create widgets within web pages.  It can
also interact with the javascript which is really useful.  

Tony.





More information about the Qt-interest-old mailing list