View Full Version : Write protecting cells
therealjag
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???
Bojan
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.
Bojan
therealjag
12th February 2006, 10:47
hey i tried the flags method and it worked - thanks man for the help. cya
vBulletin® v3.7.1, Copyright ©2000-2008, Jelsoft Enterprises Ltd.