Hello,

I have following problem.

MyModel subclass of QAbstractTableModel uses a QList<MyItem> myList as data source.
...
m_myModel = new MyModel( &m_myList, this );

Then I am using the subclass of the QSortFilterProxyModel MyProxyModel, for filtering.

QSortFilterProxyModel *m_myProxyModel = new MyProxyModel(this);

m_myProxyModel->setSourceModel(m_myModel);
m_myProxyModel->setDynamicSortFilter(true);

Everything works fine, until I change the underlying data (m_myList ) e.g. delete some rows, and change the content of some of MyItems in the list.

The changes on underlying data are done from m_myModel. I am using the begin/end-RemoveRows, and after MyItems changes I am emitting the dataChanged(...) signal, but m_myProxyModel seems not to be aware of the changes. It still shows wrong data (e.g. result of the mapToSource(index) is incorrect).

How to trigger the m_myProxyModel immediately after source data change it is up-to-date?
I hope, thee is a standard solution for such scenarios,

Thanks for any help

greetings,

me