Since, when running on a N900 in all QML 4.7, my WebView element could not
process URL's but could process inline HTML, I have temporarily written around
my situation by putting an IFRAME in the inline HTML This allows me to supply
a URL without using a WebView 'url' attribute, like this:
import Qt 4.7
import QtWebKit 1.0
Item {
Rectangle {
height:1
color:"red"
width:parent.width
anchors.top : parent.top
id:red
}
WebView {
anchors.top:red.bottom
anchors.bottom:yellow.top
html:'<iframe src ="http://nokia.com" width="800" height="480"></iframe>'
}
Rectangle {
id:yellow
height:1
color:"yellow"
width:parent.width
anchors.bottom : parent.bottom
}
}
With Javascript, I should be able to automate the whole thing.
The rendering happens rather quickly, so somehow it might be stalling when
URL's are used within the WebView, causing the checkerboard pattern to appear.
Just speculation.
You can ignore the rectangle elements in the QML code above --- I just put them
in so I could better tell what was going on. I think I'll be able to build
upon this for now until I have a solution for getting the url's to render
properly directly.
Bruce
________________________________________
From: [email protected] [[email protected]] On Behalf Of
Cichowlas Bruce (Nokia-MS/Boston)
Sent: Thursday, July 22, 2010 12:32 PM
To: [email protected]
Subject: Re: [Qt-qml] Trying hard to get WebView to work from a QML only
program on N900 with Qt 4.7
Since I've tried many things and have been unable to confirm that anyone is
running WebView on websites using QML-only (from QMLViewer) on a N900, I filed
the following bug:
http://bugreports.qt.nokia.com/browse/QTBUG-12359
Bruce
________________________________________
_______________________________________________
Qt-qml mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-qml