PDA

View Full Version : QTreeView with a custom model



aquavitae
May 14th, 2007, 11:01 AM
Can anyone give me some advice on using QTreeView with a QAbstractItemModel derived class? I've found the the Qt manual doesn't give much explanation on trees, so I'm not really sure what I'm doing. At the moment, my QTreeView is empty (althought it should show a small tree structure) and I think its something to do with the initialization of the view and model - I'm faily happy about how I've inherited QAbstractItemModel.

What steps should I follow to initialise the view and model?