PDA

View Full Version : qt4 replacement for QCheckListItem :: setRenameEnabled(int column, bool)



Majestade
27th March 2007, 23:13
hello i'm trying to create a create a editable QTreeWidgetItem.
It is suposed that when i click on the item it changes to a textBox and allows me to change the text in a specific column.
I used to do that on Qt3 using the setRenameEnabled, but it doesn't exists anymore...
does anyone knoes the substitute?!
Thanks

guilugi
28th March 2007, 09:43
I think you're looking for that :

http://doc.trolltech.com/4.2/qtreewidget.html#openPersistentEditor

Hope this helps!

Guilugi.

Majestade
28th March 2007, 10:54
it worked just fine! this functions is even better in qt4 than in qt3, where i needed triple click to enable text edit..:). Thanks!