[Qt-qml] XmlListModel doesn't work on S60 device
Jack Wootton
jackwootton at gmail.com
Tue May 18 14:22:49 CEST 2010
Are you launching the emulator from Creator? I found that I usually get
some output when a crash occurs this way.
On Tue, May 18, 2010 at 10:26 AM, Paul Drummond <paul.drummond at iode.co.uk>wrote:
> Hi,
>
> My Qt Quick app uses XmlListModel to retrieve data from the net and it
> works fine when I build using Qt 4.7.0-beta1 for the desktop.
>
> When I build the app for Symbian the XmlListModel errors immediately but
> there is no error message so I have no idea what's wrong.
>
> I have created a test Qml app to prove this is a bug with the S60 version -
> this works fine on the desktop but fails when run on a phone. I have tested
> on S60 3rd Edition and 5th Edition.
>
> I am no Symbian/s60 expert - is there something I am doing wrong -
> permissions maybe?
>
> import Qt 4.7
>
> Rectangle {
>
> width: 180; height: 200; color: "white"
>
> Component {
>
> id: delegate
>
> Item {
>
> id: wrapper
>
> width: 180; height: 40
>
> Row {
>
> spacing: 5;
>
> Text { text: name }
>
> }
>
> }
>
> }
>
> Component {
>
> id: highlight
>
> Rectangle {
>
> color: "lightsteelblue"
>
> radius: 5
>
> }
>
> }
>
> // The actual list
>
> ListView {
>
> width: parent.width; height: parent.height
>
> model: model
>
> delegate: delegate
>
> highlight: highlight
>
> focus: true
>
> }
>
> XmlListModel {
>
> onStatusChanged: {
>
> console.log("STATUS: " + status);
>
> }
>
> source: "http://www.google.com/base/feeds/snippets?q=9780596528126&orderby=price(float <http://www.google.com/base/feeds/snippets?q=9780596528126&orderby=price%28float> gbp)&sortorder=ascending";
>
> id: model;
>
> namespaceDeclarations: "declare default element namespace 'http://www.w3.org/2005/Atom'; declare namespace g='http://base.google.com/ns/1.0' <http://base.google.com/ns/1.0%27>;"
>
> query: "/feed/entry"
>
> XmlRole { name: "name"; query: "title[1]/string()" }
>
> }
>
> }
>
>
>
> Regards,
> Paul Drummond
>
> _______________________________________________
> Qt-qml mailing list
> Qt-qml at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-qml
>
>
--
Regards
Jack
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20100518/15f8bb37/attachment.html
More information about the Qt-qml
mailing list