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:
Code:
#include <QtGui> #include <QApplication> #include<QWidget> #include<QWebView> #include<QVBoxLayout> #include<QUrl> int main(int argc, char *argv[]) { QWebView view; view.setStyleSheet("background-color:rgb(150,147,88); padding: 7px ; color:rgb(255,255,255)"); view.showMaximized(); return a.exec(); }
I also have the following line in my .pro file:
Code:
TARGET.CAPABILITY = NetworkServices ReadUserData WriteUserData
I can connect to the internet using the phones web viewer application.
When my application starts, I just get a blank screen.
Please help!