[Solved] Filtering data in XMLListModel
Hello,
I want to know how can we filter data in XMLListModel.
Let’s say I’ve following XML file:
- <root>
- <file>image1.jpeg<file>
- <file>tune.mp3<file>
- <file>image2.jpeg<file>
- </root>
and I want to fetch all file names which have “.jpeg” extension. XPath defines contains() function to compare strings; is it supported by QML ?
3 replies
You must log in to post a reply. Not a member yet? Register here!


