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.





Reply With Quote

Bookmarks