Hello
So, I have QSortFilterProxy model and when I filter the list and select the result I want to delete it. to delete the item I need the index in the my model class(QAbstractListModel) but here I have the index in QSortFilterProxy.
QSortFilterProxy forwards all calls to your actual model with the mapped /corrected) index.
So you either can implement QAbstractItemModel::removeRows().
Or directly use QSortFilterProxyModel::mapToSource() to map from a proxy model index to your model's index.