how to change headers data
- by Moayyad Yaghi
hello
i have the following class
class AssetTableModel(QtCore.QAbstractTableModel):
def init(self,filename=''):
super(AssetTableModel,self).init()
self.fileName=filename
self.dirty = False
self.assets = []
self.setHeaderData(0,QtCore.Qt.Horizontal,QtCore.QVariant('moayyad'),QtCore.Qt.EditRole)
and i need to change the headers of the columns or the rows ,i used ( self.setHeaderdata())
but its not working ,i have a table that consistes of 2 columns and 2 rows only. is there any other function that changes headers ??.
please help
thanx in adnvance