I'm trying to build a plot (view) of two or more sets of data, and therefore have two or more models into that data. The resultant view needs to be synced with these multiple models. Is there a reasonable way to merge models that has already been used?


Reply With Quote

isplayRole to return the appropriate data. If I implement multiple responses, I need to use Qt::UserRoles(s) which got a bit cumbersome. I really need to subclass QAbstractItemModel to have a new call to extendedData() with a model identifier (and possibly type)r, and then calls to the separate models thru data(). This seems appropriate, but I was looking for gotchas, things I didn't know about with that kind of subclass.



Bookmarks