qidentityproxymodel

How to use QitemDelegate with multiple proxy models stacked?

社会主义新天地 提交于 2019-12-13 03:47:08
问题 This question is related to this previous question: how to use QSortFilterProxyModel for filter a 2d array? i have been trying to stack several proxy model to display a 2d array of data into a qtableview. @eyllanesc provided a really cool solution to my question but it doesn't seem to be compatible with qitemdelegate. When i add it to his example the delegate doesnt display as expected. Without the proxy3 it does show correctly. import random import math from PyQt4 import QtCore, QtGui class