[Qt-interest] QWebView local image problem

Dominic Stalder dominic.stalder at bluewin.ch
Thu Dec 24 13:17:43 CET 2009


Hi

I can't find my old post, so sorry if I double post ;-)

I want to show my qhelp via the QWebView, at this time it works like this:

    // gets the byte array of the online help
    QByteArray help = helpEngine->fileData(url);
   
    // sets the content of the help browser based on the given url
    helpBrowser->setContent(help, QString("text/html"), url);

The url looks like this qthelp://ch.bfh.wiitetris/doc/onlinehilfe.html

This works, but now I can't see any images. The images are in a special 
folder in the /doc directory (the same place as onlinehilfe.html is 
located). The images are referenced as follow: <img 
src="figures/menu_game.png" alt="PIC">

Has anybody some tips?

Regards
Dominic



More information about the Qt-interest-old mailing list