I am pretty much a newbie to QML and have been experimenting just recently..
The following is a code that was working well, but in incremental devlpt I made some mistake and I am unable to recover proper functioning.. The code below pulls data from a RSS feed and displays title and publication Date..
Code:import QtQuick 1.0 Rectangle { width : 600 height: 400 color : "lightgrey" XmlListModel { id: xmlModel source: "http://www.ted.com/talks/rss" query: "/rss/channel/item" namespaceDeclarations: "declare default element namespace 'http://www.w3.org/2005/Atom';" XmlRole { name: "title"; query: "title/string()" } XmlRole { name: "pubDate"; query: "pubDate/string()" } } Component { id: listDelegate Item { width: parent.width height: 55 Column { id:columnID x : 65 Text { text: title font.pointSize: 12 } Text { text: pubDate color: "grey" font.pointSize: 8 font.italic: true } } } } ListView { y: 10 width: parent.width height: parent.height - 10 model: xmlModel delegate: listDelegate highlight: Rectangle { color: "darkgrey"; radius: 5; width: parent.width } focus: true clip: true } }
I am unable to say why the code is not working. I seem to have connected the ListView with a model on delegate. Can you please tell me what is wrong..
Also, how do i track status / error codes of the web service I am making. I would prefer having a spinning wheel animation until the load is successful




