Quote Originally Posted by neda View Post
I changed the code
Any specific reason you did not just fix the model but went for a totally different approac

Quote Originally Posted by neda View Post
But I do not see any record in the TableView.
I am not sure what you expect to see.
You tell the TableViewColumn to use "col1" as the role, yet your data has no "col1", it has "newName" and "newValue".

So, from your point of view, which of these tw comparions should be true?
Qt Code:
  1. "col1" == "newName"
  2. "col1" == "newValue"
To copy to clipboard, switch view to plain text mode 
As far as I know neither C++ nor JavaScript would evaluate either of these two as true.

Cheers,
_