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?
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?
To enable editing in TreeModel, you must implement setData(), and modify flags() to return Qt::ItemIsEditable together with other necessary flags.
J-P Nurmi
Bookmarks