Loading page using Qt webview
-
wrote on 17 Jan 2011, 11:21 last edited by
Hello, I create small aplication to load page in Qt webview. In simulator everything goes fine But in mobile phone app dont load page.(white screen) I connect phone to internet via WLAN connection. Pls help.
There is code:
@MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
QCoreApplication::setOrganizationName("Madness");
QCoreApplication::setOrganizationDomain("madnes.eu");
QCoreApplication::setApplicationName("Snowboard");ui->webView->load(QUrl ("http://snowboard.madweb.sk"));
}@
-
wrote on 17 Jan 2011, 11:38 last edited by
Which phone are you trying to use? Which Qt version?
-
wrote on 17 Jan 2011, 11:39 last edited by
QT 4.7, Phone I use: E75
-
wrote on 17 Jan 2011, 11:42 last edited by
So it is a symbian phone. Did you enable the netowrking capability for your apoplication?
-
wrote on 17 Jan 2011, 12:05 last edited by
No, How can I do it ?
-
wrote on 17 Jan 2011, 12:58 last edited by
In project file include NetworkServices.
@symbian:TARGET.CAPABILITY += NetworkServices @ -
wrote on 17 Jan 2011, 13:10 last edited by
I add it now, but still white screen.
-
wrote on 17 Jan 2011, 13:17 last edited by
My pro file:
@#-------------------------------------------------Project created by QtCreator 2010-12-28T16:02:45
#-------------------------------------------------
QT += webkit
TARGET = test2
TEMPLATE = appSOURCES += main.cpp
mainwindow.cppHEADERS += mainwindow.h
FORMS += mainwindow.ui
CONFIG += mobility
MOBILITY =symbian {
TARGET.CAPABILITY += NetworkServices
TARGET.UID3 = 0xefe0c733
TARGET.EPOCSTACKSIZE = 0x14000
TARGET.EPOCHEAPSIZE = 0x020000 0x800000
}
@ -
wrote on 17 Jan 2011, 13:19 last edited by
now there is error: [Qt Message] qt_init: Eikon application construct failed ( -1 ), maybe missing resource file on S60 3.1?
-
wrote on 18 Jan 2011, 04:59 last edited by
I am not a symbian dev but -1 means "not found" in AVKON terms. Delete the old build files before rebuilding the project. Which IDE are you using?
7/11