insert column title qtablewidget python code example Example: python set table widget header self.myTableWidet.setHorizontalHeaderLabels(['1', '2', '3', '4'])