Greetings,
In my QSortFilterProxy model I have implemented the filterAcceptsRow and lessThan methods. A new requirement has creep'd in which requires that the view needs to display/move some of the indexes as child indexes of other nodes. Basically there is meta-data with each index's data that indicates which other node it needs to be a displayed as a child of.
Without going into a trial and error mode I am wondering: What is the correct chain of proxy's in which I would have to implement to do this correctly?
* note: the model is only sorted on instantiation, sorting is otherwise disabled.
From what I understand this is about the design I would need to implement:
view <- AbstractProxy(mapTo, mapFrom) <- SortFilterProxy(lessThan, filterAccepts) <- AbstractItemModel
Any suggestions or alternatives?
tyvm!
-BB
Bookmarks