Seems like it doesnt work, this is my code:

PHP Code:
#include <QtCore/QCoreApplication>
#include <QtWebKit/QWebPage>
#include <QUrl>
#include <QWebFrame>

int main(int argcchar *argv[])
{
    
QCoreApplication a(argcargv);

    
QWebPage   page();


   
page.mainFrame()->load(QUrl("www.nokia.com"));


    return 
a.exec();

It says:
QWidget: Cannot create a QWidget when no GUI is being used
any idea?