Search code examples
c++qtqtreeviewqabstractitemmodel

QAbstractItemModel and QTreeView


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


Solution

  • 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.