Thx. I will try QSortFilterProxyModel.