I develop an application for Nokia N5800 with Qt, I want display a QwebView, but the QwebView still blank, here my main.cpp:
#include <QtGui/QApplication>
#include <QApplication>
#include <QWebView>
#include <QUrl>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QWebView view;
view.load(QUrl("http://www.google.com"));
view.setFocus();
view.showMaximized();
return a.exec();
}
and the .pro:
QT += core gui webkit network
TARGET = MyMobile
TEMPLATE = app
SOURCES += main.cpp
CONFIG += mobility
symbian {
TARGET.CAPABILITY = NetworkServices
TARGET.UID3 = 0xef1cbf3f
TARGET.EPOCSTACKSIZE = 0x64000
TARGET.EPOCHEAPSIZE = 0x020000 0x800000
HEADERS += sym_iap_util.h
LIBS += -lesock -lcommdb -linsock # For IAP selection
}
DEFINES += BROWSER
DEFINES += PHONE_EMU
I heard that I should use this in my main function:
#ifdef Q_OS_SYMBIAN
qt_SetDefaultIap();
#endif
and include the sym_iap_util.h
It work on Qt simulator but it still don't work on Symbian Device.
(I have many errors with sym_iap_util.h)
Thanks for your help.

penUrl( url);

