how to change headers data

Posted by Moayyad Yaghi on Stack Overflow See other posts from Stack Overflow or by Moayyad Yaghi
Published on 2010-05-27T05:37:38Z Indexed on 2010/05/27 5:41 UTC
Read the original article Hit count: 215

Filed under:
|
|
|
|

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

© Stack Overflow or respective owner

Related posts about python

Related posts about qt