Hello everyone, I want to filter QSqlQueryModel. I've used QSortFilterProxyModel but I have many fields to filter on. All depends on the user criteria.
I have a look on the Qt documentation but I've not found anything that helps me.
Can anyone help me to resolve this problem.
Many thanks in advance.
Best Regards.


Reply With Quote

How that, is the WHERE, GROUP BY clauses of your MySQL statement not enough? You can set new queries on the model, if your user criterias change. That would be the easiest approach.

Bookmarks