As far as I understood the docs QAbstractProxyModel, once subclassed and used wisely, should fit your needs...
As far as I understood the docs QAbstractProxyModel, once subclassed and used wisely, should fit your needs...
Current Qt projects : QCodeEdit, RotiDeCode
Yes, I can confirm that. Subclass it and reimplement pure abstract methods. Just do it wisely, because you have to know all the leaves of the tree upfront. You might have to cache the data from the underlying model and connect to its signals to update the cache when the underlying model changes.Originally Posted by fullmetalcoder
Yep, subclassing QAbstractProxyModel did the trick. Too bad I can't couple selectionModels anymore, because the models are different now. Now why isn't there a QAbstractProxySelectionModel classOh well I guess I'll just have to make one myself.
Hi,
I have a similar problem. Can you give any examples how to map tree model nodes for flat view? Simplest way would of course give a root index for a view but I would like to do it in proxy.
Bookmarks