You could use a QSortFilterProxyModel to filter the actual model, or implement the filter in the model itself.

Cheers,
_