QWebView page is blank on my device, but loads nicely on the emulator
Ive just started developing for my lovely n900 and would like very much to make a "webkit app" or whatever its called.
right now i have 2 problems:
1: ive made a simple app that loads google.com. when i debug to the software emulator it works well but when i debug to the device the screen is just white (blank). Am i missing something on my n900?
2: where do i put html files if i where to load my own html file and not load google.com? im doing it like this: ui->webView->load(QUrl("home.html")); but where am I suppose to put home.html?
Re: QWebView page is blank on my device, but loads nicely on the emulator
Store it in Resource file or use the file path directly as it is. Like "c:/html"
Re: QWebView page is blank on my device, but loads nicely on the emulator
I'm having the same problem. Works fine in simulator but not on nokia c7 device.
Tried to load http://www.google.com and local HTML file. Same problem.
Can browse normally with browser on device, so internet is reachable.
I have tried to double the heap size. Same problem.
I have this in my .PRO file:
Code:
QT += core
QT += gui
QT += sql
QT += network
QT += webkit network
QT += multimedia
TARGET = MyApp
TEMPLATE = app
DEFINES += NETWORKACCESS
CONFIG += mobility
MOBILITY += multimedia
MOBILITY += location
MOBILITY += bearer
symbian {
TARGET.UID3 = 0xe4fd1392
TARGET.CAPABILITY += NetworkServices ReadUserData WriteUserData
TARGET.CAPABILITY += Location
TARGET.EPOCSTACKSIZE = 0x14000
TARGET.EPOCHEAPSIZE = 0x020000 0x8000000
}
debug {
MMP_RULES -= "PAGED"
MMP_RULES += "UNPAGED"
}
No solution yet.