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 consists of 2 columns and 2 rows only. is there any other function that changes headers ??.
please help thanx in adnvance