views:

478

answers:

1

I would like to have one column in QTableWidget NOT editable. I forums have read a lot about some flags bould could not manage to implement.

Thanks in advance!

+3  A: 

Insert into the QTableWidget following kind of items:

QTableWidgetItem *item = new QTableWidgetItem();
item->setFlags(Qt::ItemIsSelectable|Qt::ItemIsEnabled);

Works fine!

Narek
Thanks. This helped me out today.
Brian Stinar
Glad to know that!
Narek