Hi,
I have a maybe stupid question but, can anyone help me here:
I have a data class which gets manipulated through a tableWidget. Then I have a model and a treeview based on that data. The data can only be viewed in the tree view. How do I tell the model that the data was changed through the table widget?
The table widget looks like that:
a1 1 2 3
b1 4 5
The tree view displays the full factorial combinations of a1 b1
Qt Code:
a1 1 b1 4 5 2 b1 4 5 3 b1 4 5To copy to clipboard, switch view to plain text mode
So, adding a value to b1 would change the tree. I guess (at least I don't see how) I can't have a single model for the two different views since the setData is different for both views.
I appreciate any comments to help me solve my problem.
Thanks.
Bookmarks