View Full Version : Write protecting cells

10th February 2006, 03:40
hey i was wondering if theres a way to write protect cells in a table if you dont want a user to write data into they particular cells - with a QTableWidget???

10th February 2006, 04:17
I am not sure if you can do it through QTableWidget, but QTableWidgetItem has setFlags method:

void QTableWidgetItem::setFlags ( Qt::ItemFlags flags )
Sets the flags for the item to the given flags. These determine whether the item can be selected or modified.


12th February 2006, 10:47
hey i tried the flags method and it worked - thanks man for the help. cya