I guess in your actual code you have a real, C++ based, list model anyway, so either add a filter there or use a QSortFilterProxyModel on top of it.

Cheers,
_