I am using the following code to disable editing of a cell in a QTableWidget.
ui->tableWidget_1->item(row,col)->setFlags(Qt::ItemIsSelectable|Qt::ItemIsEnabled);
This works fine. I don't understand how to undo this i.e. how do I make the cell editable again?
I've tried calling the function again in case that toggles it. I've tried calling the same function but with a ~ in front of the flags as seen elsewhere. I'm not sure if I really understand how flags work in Qt.