Remove DACanTreeModel::index(). It's incorrect and makes the model to not work properly. There should be no need to reimplement it.
Edit: Sorry, forget what I just said. For some reason I read it as QAbstractTableModel. Some other thread must have confused me. For QAbstractItemModel you naturally need to implement index() since it's pure virtual. But do you really need a QAbstractItemModel? In some other thread your data looked flat to me, so maybe you should consider using QAbstractTableModel which makes things easier for you.





Reply With Quote
Bookmarks