Hi,

I've recently updated from QtSDK 1.1.1 to QtSDK 1.1.3

Before, I've created a simple program that reads from xml file and using xmlmodel query using xpath. Works just fine until I upgraded to QtSDK 1.1.3.

I used this simple program to test the xpath queries before:
Qt Code:
  1. Rectangle {
  2. id: appWindow
  3. width: 300; height: 300
  4. color: "pink"
  5.  
  6. XmlListModel{
  7. id: xmlmodel
  8. source: "sample.xml"
  9. query: "/story/pages/text[@id=\"1\"]"
  10. // query: "/story/pages/text"
  11.  
  12. XmlRole { name: "content"; query: "string()" }
  13. }
  14.  
  15. Component {
  16. id: itemdelegate
  17. Item {
  18. id: wrapper
  19. width: contentText.width
  20. height: contentText.height
  21. Text{ id: contentText; text: content; textFormat: Text.PlainText }
  22. }
  23. }
  24.  
  25. ListView {
  26. id: listView
  27. width: 200
  28. height: 20
  29. model: xmlmodel
  30. delegate: itemdelegate
  31. highlight: highlighter
  32. highlightFollowsCurrentItem: true
  33. orientation: "Horizontal"
  34. }
  35. }
To copy to clipboard, switch view to plain text mode 

The query property of XmlListModel, as far as i have observed, does not work in the current version of QtSDK (1.1.3). This makes the program to "unexpectedly finished". I have verified this by making the query to the one commented out.

I have used this code before using QtSDK 1.1.1, and it works just fine. I want to ask if this is a bug or xpath queries are just not supported in QtSDK 1.1.3? Because I have used xpath queries intensively in the application that I am developing.. :C

Thanks in advance~