how to change Qtablewidget's spesific cells backround color in pyqt
I am new in pyqt4 and i couldn't figure out how to figure out this. I have
a QtableWidget with data in it. i want to change some backround color of
tableWidget's cells. I tried self.tableWidget.item(3,
5).setBackground(QtGui.QColor(100,100,150)) and error returns like this
AttributeError: 'NoneType' object has no attribute 'setBackground'
what should i do ?
Thanks in advance.
No comments:
Post a Comment