Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 5

Qt-interest Archive, February 2008
Limit the editable columns in tree widget


Message 1 in thread

Hi,

is there an easy way to limit the columns that can be edited in a treewidget 
if you set the items to Qt::ItemIsEditable.
I just want one column editable, not any the others.

I noticed there's an 
 edit ( const QModelIndex & index, EditTrigger trigger, QEvent * event )
where i can probably set the event on ignored, but the QTreeWidget is part of 
a generated class (from the designer) so I don't have a class in which I can 
overrule the function.

Any suggestions?

TIA,
Eric

--
 [ signature omitted ]