I'm trying to change the color of background of an QTableWidget. There is some others posts about the same things bot nothing of the given solution worked for me.
With that solution, we are setting the background on an alredy existed item in the table to a light grey on the item a row 0, column 1:
self.table.item(1,0).setBackground(QtGui.QColor(125,125,125))
It's working, but set background for the row with iterating need more time if you have more then one table. I need a function to change the row background by passing only the row index!