Hi,

In the following code I am trying to display the web page using QWebView..but it displays a BLANK page(In windows machine) . As this problem is discussed many times in this forum ,but no one given the solution. I include QT += webkit in .pro file also,
and there is no compile time or run time warnings.

And it displays the intraweb pages but not the other web pages like google, qt.nokia.com etc..
Struggling in this from last two days....


code:
-------


#include <QtGui>
#include <QtWebKit>

#include <QDebug>


int main(int argc, char **argv)
{
QApplication app(argc, argv);

QWebView *wv = new QWebView();
QWebPage *page = wv->page();
QWebSettings *settings = page->settings();

settings->setAttribute(QWebSettings::JavascriptEnabled, true);
settings->setAttribute(QWebSettings::PluginsEnabled, true);
settings->setAttribute(QWebSettings::PrivateBrowsingEnabled , true);

QUrl url = QUrl("http://qt.nokia.com/"); // http://www.google.co.in/
wv->load(url);
wv->setFocus();
wv->show();

return app.exec();
}



Thanks for Help..