I use a QSortFilterProxyModel to filter a QSqlTableModel's data, and want to get the filtered rowCount.
But when I call the QSortFilterProxyModel.rowCount method, the QSqlTableModel's rowCount was returned.
So how can I get the filtered rowcount?
You should after set QSortFilterProxyModel filter to call proxymodel.rowCount。
How to get filtered rowCount in a QSortFilterProxyModel