I started playing with this last night. Didn't use a proxy, just derived directly from QAbstractItemModel. Added a QVector of QAbstractItemModel pointers as a member. This vector holds the multiple models managed by the wrapper model. Got it working to the point where I could display the top-level tree (of wrapped model "names") and then expand to one level below that (the actual top-level content of each wrapped model). But I've done something wrong in the index(), parent(), or rowCount() methods because it wants to expand beyond that, and there is nothing in the wrapped models beyond the top level.
I'll play with it some more later, and post code if I get it working.




Reply With Quote

Bookmarks