[Qt-qml] [qt-qml] How to access a XmlListModel roles without any kind of View

Daker Fernandes dakerfp at gmail.com
Tue Jul 13 16:09:38 CEST 2010


How to access a XmlListModel roles without any kind of View?

XmlListModel {
    id: xkcdModel
    source: "http://xkcd.com/100/";

    XmlRole { name: "image"; query: "/title/text()" }
}

Text {
     text: xkcdModel.get(0).image
}

I really need to create a View? There is a better way to do it?

Thanks

Daker Fernandes Pinheiro (dfp)
Graduando em CC, turma 2007.2
CIn - UFPE
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20100713/54dfb552/attachment.html 


More information about the Qt-qml mailing list