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

Ulf-Alexander v. Ceumern-Lindenstjerna ceumern at vrmagic.com
Mon Mar 29 10:57:48 CEST 2010


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

--
Ulf v. Ceumern
Dipl.-Inf.

VRmagic GmbH
Augustaanlage 32
68165 Mannheim, Germany
E-Mail: ceumern at vrmagic.com

Tel.: +49/621/400416-52
Fax: +49/621/400416-99


Steuernummer: 38189/54003
USt.IdNr.: DE217365947
Registergericht: Amtsgericht Mannheim, HRB 8958
Geschäftsführer: Norbert Hinckers, Dr. Markus Schill
--






More information about the Qt-interest-old mailing list