QAbstractItemModel and QTreeView

Dmitry picture Dmitry · Dec 4, 2010 · Viewed 23.6k times · Source

I need working examples (c++) of show own data model in QtreeView.

Answer

Nathan Pitman picture Nathan Pitman · Dec 4, 2010

There's a pretty good QTreeView/QAbstractItemModel example here. It's fairly straightforward once you get used to QT's ultra-generic model... just don't expect it to be as simple or obvious as Java's TreeModel.