Horizontally. I have a set of data points (typically 10, to 1oooo points) and fitted analytical curve(s) that need to be overlaid for comparison. I have set up the obvious: a PointsModel to handle the data which populates a QTableView. Now I need to build a plot in a separate view that plots the histogram of the data (using a (vertical) proxy model to calculate the bins) and overlays one or more possible fits. I can represent a fit with an appropriate model, but I don't know how to merge it (them) with the proxy model, especially because the multiple fit models will be signaled from a QListWidget selection(s). Thanks for any help.




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