How to get QWebKit to display image?
- by George Edison
Okay, I have a Qt executable in the same directory as a file logo.png.
I call the following:
QString msg("<html><body><img src='logo.png' /></body></html>");
webView->setHtml(msg);
where webview is the QWebKit pointer
However, when I execute the program, the image does not display. I am executing the program from the directory that the image is in... why won't it display?