Thanks agarny!
I can not use any classes with graphics so the solution as I understands it is to use QTreeWidgetItem or QStandardItemModel to create a tree structure.
http://doc.qt.nokia.com/4.5/qstandar...odel.html#item

But how do you traverse the tree structure if you can not place the model in to a QTreeView or
the QTreeWidgetItem into a QTreeWidget?