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
Another option is using QStandardItem::setFlags() by which one can set different flags to individual items.
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.