You need to reimplement setData() and emit a dataChanged() signal for the artificial index whenever any of its dependencies get updated. Alternatively simply monitor for dataChanged() signal from the source model and if any of the changed indices affect the artificial column, emit dataChanged() for it.





Reply With Quote

Bookmarks