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:
#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.
load(QUrl("http://www.google.com"));
view.showMaximized();
return a.exec();
}
#include <QtGui>
#include <QApplication>
#include<QWidget>
#include<QWebView>
#include<QVBoxLayout>
#include<QUrl>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QWebView view;
view.setStyleSheet("background-color:rgb(150,147,88); padding: 7px ; color:rgb(255,255,255)");
view.load(QUrl("http://www.google.com"));
view.showMaximized();
return a.exec();
}
To copy to clipboard, switch view to plain text mode
I also have the following line in my .pro file:
TARGET.CAPABILITY = NetworkServices ReadUserData WriteUserData
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!
Bookmarks