Have you looked at the Qt Simple Tree Model example? It pretty much explains everything you would need for a non-editable tree model. There is also an example for an editable tree model.