Making only one column of a QTreeWidgetItem editable

Posted by Andreas Brinck on Stack Overflow See other posts from Stack Overflow or by Andreas Brinck
Published on 2010-05-10T10:40:14Z Indexed on 2010/05/10 10:44 UTC
Read the original article Hit count: 407

Filed under:

I have a QTreeWidgetItem with two columns of data, is there any way to make only the second column editable? When I do the following:

QTreeWidgetItem* item = new QTreeWidgetItem();
item->setFlags(item->flags() | Qt::ItemIsEditable);

all columns become editable.

© Stack Overflow or respective owner

Related posts about qt