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
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';"

        query: "/feed/entry"

        XmlRole { name: "name"; query: "title[1]/string()" }

    }

}



Regards,
Paul Drummond
_______________________________________________
Qt-qml mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-qml

Reply via email to