PDA

View Full Version : Write protecting cells



therealjag
10th February 2006, 02: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???

Bojan
10th February 2006, 03: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.

Bojan

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