PDA

View Full Version : QTableView - Restrict editable rows.



jimroos
4th June 2007, 02:58
I'm using a QTableView with a QStandardItemModel to display/edit configuration file data. I need the ability to restrict which rows/columns can be edited. Anyone have some suggestions?

wysota
4th June 2007, 07:19
http://www.qtcentre.org/forum/f-qt-programming-2/t-how-to-make-a-column-read-only-in-qsqlrelationaltablemodel-7242.html

jpn
4th June 2007, 08:31
Another option is using QStandardItem::setFlags() by which one can set different flags to individual items.