PDA

View Full Version : QWebView page is blank on my device, but loads nicely on the emulator



Larsey
6th October 2010, 20:59
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?

raja26
3rd April 2011, 17:50
Store it in Resource file or use the file path directly as it is. Like "c:/html"

soup5553
14th April 2011, 17:37
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:

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.