PDA

View Full Version : How to detect when QSortFilterProxyModel has finished filtering



qtstarter101
14th January 2020, 01:17
I am in need of some way to tell when filtering has been completed on my model and I'm wondering if there is a reliable way to capture when this occurs so I can call some other function.

d_stranz
14th January 2020, 20:18
I would look for the QAbstractItemModel signals modelReset(), dataChanged(), or layoutChanged(). The proxy will probably emit one or more of these signals when the filtering is complete. It depends in some part on how the proxy has been implemented.