All you need is to create your own model. Are you acquainted with Model/View architecture? The documentation is exhaustive. Here's online doc.: http://doc.qt.nokia.com/4.6/model-vi...w-architecture
The Qt class QAbstractItemModel is where to start.
Keep your data in a separate structure. Derive your own model that will provide the translation of data from the data storage to the view. Then join the view and the data storage through that model. Qt is very friendly in these tasks!
Bookmarks