for row in range(4):
    item1 = QtGui.QTableWidgetItem(data1[row])
if row % 2 == 0:
    item1.setBackground(QtGui.QColor(255, 128, 128))
self.table.setItem(row, 0, item1)
self.table.item(1, 0).setBackground(QtGui.QColor(125, 125, 125))
if __name__ == '__main__':
    app = QtGui.QApplication(sys.argv)
window = MainWindow()
window.show()
sys.exit(app.exec_())
Изменить цвет фона QTableWidgetItem