I feel like this place is my lifeline the past couple of weeks!
Does anybody know if it's possible to have a single model shared by multiple views, but, showing different subsets of data?
My scenario:
I have a model that represents a database table QSqlTableModel or QSqlRelationalTableModel and I have multiple views on a single screen. I wish to display, for example, all records created before date X in one view and all records created after date X in another view.
The only examples I've found so far that allow the sharing of models between multiple views seem to keep the same records displayed in each view, rather than displaying different subsets of data.
Is this possible, or will I need to instantiate multiple models? I'm trying to fiddle with QSortFilterProxyModel now, but I don't think it's entirely suitable for what I want here.
Thanks!
Bookmarks