[Qt-qml] QML WebView and S60 (again)

Jack Wootton jackwootton at gmail.com
Tue May 25 14:03:41 CEST 2010


Hello,

More QML / Symbian questions :-|

I must prefix this post by explaining the hw I'm using may not be 100%
reliable.  So am looking to see if Ive missed something obvious here.

I have a QML application which installs onto a device (N97).  I had to do
the following steps to get this far:

1. Modify the *.pkg file to include the following the webkit pkugin binaries
and the webkit plugin stub files

"/epoc32/release/$(PLATFORM)/$(TARGET)/webkitqmlplugin.dll"    -
"!:\sys\bin\webkitqmlplugin.dll"
"/epoc32/winscw/c/resource/qt/imports/org/webkit/qmldir"
-"!:\resource\qt\imports\org\webkit\qmldir"
"/epoc32/winscw/c/resource/qt/imports/org/webkit/webkitqmlplugin.qtplugin"
- "!:\resource\qt\imports\org\webkit\webkitqmlplugin.qtplugin"

2. Modified the mmp file to change capability to All -tcb (just to ensure
there were no issues here)

3. Add QML, HTML and JavaScript files to the Qt resource file.

The QML WebView component loads fine because I added a s completed listener
such that the WebView QML looked like:

WebView {
    id:myWebView

    function init() {
    myRectangle.visible = true
    myRectangle.color = "blue"
    }

    Component.onCompleted: init();

    width:500
    height:500
    scale:1
    url: "http://www.google.com"
}

Rectangle {
    id: myRectangle
    color:"red"
    visible:false
}


The component rectangle is just there so I can check the WebView component
loads...and it does (i.e  myRectangle becomes visible.  However the URL
www.google.com is never displayed.  I have tried loading a local HTML file
using a qrc url and an external URL (www.google.com).  Neither of these
work.

I can use the browser on the device, so I don't think there is an issue
there.  A I mentioned before, I mofied the mmp to provide All -tcb
capabilties.

Is there anything obvious I've missed?
-- 
Regards
Jack
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20100525/d8c2bf18/attachment.html 


More information about the Qt-qml mailing list