So what good would it bring to have a model?
Yes, that's true. But you don't have to copy the data anywhere. If you have the data somewhere (like in the xml document) just wrap the data in the QAbstractItemModel interface. If you're only after showing the data then Qt comes with an example that creates a read-only model around QDomDocument.
Bookmarks