Hi,
How can I make the cells of a column in a QTableView not editable? I am using QAbstractTableModel
Thanks,
Carlos.
Hi,
How can I make the cells of a column in a QTableView not editable? I am using QAbstractTableModel
Thanks,
Carlos.
You can set a Item Delegate for Column with QAbstractItemView::setItemDelegateForColumn() and implements a read-only delegate.
Alternative you can your model and in QAbstractItemModel::flags you can remove the Qt::ItemIsEditable for specified column
A camel can go 14 days without drink,
I can't!!!
gkarthick5 (1st August 2011)
Cool!. Thanks.
very good. i do it
Bookmarks