Qt Code:
  1. #include <QtCore>
  2. #include <QtGui>
  3. #include <QtWebKit>
  4.  
  5. int main (int argc, char * argv[])
  6. {
  7. QApplication app (argc, argv);
  8.  
  9. QUrl baseUrl = QUrl::fromLocalFile (QDir::current().absoluteFilePath ("file:///home/anisha/Desktop/ogmap.html"));
  10.  
  11. QString msg ("<html><body><img src='logo.png' /></body></html>");
  12.  
  13. QWebView *webView = new QWebView;
  14. webView->setHtml(msg, baseUrl);
  15.  
  16. webView->show();
  17. return app.exec();
  18. }
To copy to clipboard, switch view to plain text mode 

This displays a small logo in the widget, nothing else. I am not interested in any logo.
When I open that html file through Konqueror/Firefox, map gets displayed.
What wrong am I doing here? I want the map to be displayed in that widget.