PDA

View Full Version : Editable QTreeView



winston2020
23rd January 2009, 03:17
I've just finished the "Simple Tree Model" example. What would be the best way of altering this to allow the user to modify the tree?

jpn
23rd January 2009, 14:18
To enable editing in TreeModel, you must implement setData(), and modify flags() to return Qt::ItemIsEditable together with other necessary flags.