Actually, it's not that difficult.

See the simple tree model example:
http://doc.qt.nokia.com/4.6/itemview...treemodel.html