as a QObject, I would instead set the view as the parent of the QSortFilterProxyModel so that it is automatically deleted by the view