[Qt-qml] Trying hard to get WebView to work from a QML only program on N900 with Qt 4.7
Martin Jones
martin.jones at nokia.com
Fri Jul 23 03:47:39 CEST 2010
It is working with a current build. You will need to either build a newer Qt
4.7 from git source or wait until a new package is made for N900. RC1 isn't
too far away so hopefully it will be a short wait.
Martin.
On Fri, 23 Jul 2010 06:39:38 am Cichowlas Bruce (Nokia-MS/Boston) wrote:
> 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: qt-qml-bounces at trolltech.com [qt-qml-bounces at trolltech.com] On Behalf
> Of Cichowlas Bruce (Nokia-MS/Boston) Sent: Thursday, July 22, 2010 12:32
> PM
> To: qt-qml at trolltech.com
> 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
> Qt-qml at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-qml
--
Martin
More information about the Qt-qml
mailing list