I need working examples (c++) of show own data model in QtreeView.
Nathan Pitman
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.
来源:https://stackoverflow.com/questions/4354515/qabstractitemmodel-and-qtreeview