make row readonly tablewidget pyqt

40

item = QTableWidgetItem()
item.setFlags(item.flags() ^ Qt.ItemIsEditable)
tableName.setItem(row, column, item)

Comments

Submit
0 Comments