Use a QSortFilterProxyModel from QML with PyQt5
问题 I try to combine a QML view with a QSortFilterProxyModel within PyQt5. Unfortunately I can't get it to work in any way. My main problem right now seems to be to pass the items back from QML. But even if this would be possible it seems that it does not work, I get TypeError: QSortFilterProxyModel.setSourceModel(QAbstractItemModel): argument 1 has unexpected type 'PyCapsule' if I set the model directly in python. Currently I have: class SortFilterProxyModel(QSortFilterProxyModel): @pyqtProperty