Thanks for answers so far. Problem not yet solved, however.
divanov: I tried this without success. On PC I'm behind corporate firewall but I also ran the program on N97 without proxy and the webview still stayed blank. No connection was asked or established.
lucarocchi: The example projects included in Qt Creator do not build with my configuration - I have understood from forums that there are problems with them on Windows 7. However, there are no such problems when creating new project.
I tried showing some static html on webview which indeed worked as expected - the text 'Foo' was shown on white background:
Code:
#include <QtGui>
#include <QtWebKit>
int main(int argc, char * argv[])
{
QApplication app(argc, argv);
QWebView view;
QString html = "<html>";
html.append("<head><title>Test</title></head>");
html.append("<body>Foo</body>");
html.append("</html>");
view.setHtml(html, QUrl("http://foo.bar/biz"));
view.show();
return app.exec();
}
Any further help with QWebView::load(...) ?
edit: I noticed that I forgot to call QWebView::show() after calling load(). Blank screen still there however.