因为我使用了QSortFilterProxyModel,所以在使用向下键选择项目时,索引来自代理模型。我在文档中看到,我应该使用mapToSource来获取原始模型中的索引,但是在这里我得到了一个错误消息index from wrong model passed to mapToSource,index.row错误是:QSortFilterProx
我在pyqt4.8中对QSortFilterProxyModel进行子类划分。 #Then map the index to the source and return the source column
col = proxy.mapToSource但是,当行过滤器删除了代理的所有行时,我遇到了一个问题。在这种情况下,在(0,col)处创建的代理索引<