QDataWidgetMapper and multiple delegates
问题 mapper = QtGui.QDataWidgetMapper() mapper.setModel(my_table_model) mapper.addMapping(widgetA, 0) #mapping widget to a column mapper.addMapping(widgetB, 1) #mapping widget to a column mapper.setItemDelegate(MyDelegateA(widgetA)) #Hmm. Where is the 'column' parameter? mapper.setItemDelegate(MyDelegateB(widgetB)) #now itemDelegate is rewritten, MyDelegateB will be used So... How do I set up mutiple delegates for a single QDataWidgetMapper ? As far as I understand there is no QDataWidgetMapper