I am running Qt with S60 5th edition.

I cannot get QWebView to work on my target device (N97). The code works fine in the emulator.

This is my code in main.cpp:

Qt Code:
  1. #include <QtGui>
  2. #include <QApplication>
  3. #include<QWidget>
  4. #include<QWebView>
  5. #include<QVBoxLayout>
  6. #include<QUrl>
  7.  
  8. int main(int argc, char *argv[])
  9. {
  10. QApplication a(argc, argv);
  11.  
  12. QWebView view;
  13. view.setStyleSheet("background-color:rgb(150,147,88); padding: 7px ; color:rgb(255,255,255)");
  14. view.load(QUrl("http://www.google.com"));
  15. view.showMaximized();
  16.  
  17. return a.exec();
  18. }
To copy to clipboard, switch view to plain text mode 

I also have the following line in my .pro file:

Qt Code:
  1. TARGET.CAPABILITY = NetworkServices ReadUserData WriteUserData
To copy to clipboard, switch view to plain text mode 

I can connect to the internet using the phones web viewer application.

When my application starts, I just get a blank screen.

Please help!