PDA

View Full Version : using QStandardItemModel



GrahamLabdon
3rd March 2011, 09:39
Hi
I have just started to experiment with QStandardItemModel.
So I set up my model and view and now cant see how the data in the model gets updated.
My application displays the tree as expected and allows the user to edit the contents
But how do I get the data back into the model

I have attached the source files and would be grateful if someone could help in this matter

Graham

wysota
6th March 2011, 09:13
If you edit the data in the view, the changes are propagated to the model by the view.