I have a custom model which append to emit the dataChanged() signal from time to time when some cell's values are changed. This works great on its own, and the view is updated as needed.
But then I tried to insert a QSortFilterProxyModel in the middle to allow sorting (no filtering needed) on my view, and apparently the dataChanged() signal is not relayed through the proxy model.
As far as I can tell, it's the expected behaviour for QSortFilterProxyModel, is there any solution other than subclassing QSortFilterProxyModel, just to add a slot to relay the dataChanged() signal and mapping items accordingly?
In my case it's pretty straight forward as only a single cell is updated at a time, or a whole column, but nothing else funky, so mapping indexes should be pretty simple...
You can invoke signal from QSortFilterProxyModel without inheriting it by QMetoObject::invokeMethod Dont forget to check helper functions: mapFromSource mapToSource