Is it possible to store a duplicate of a QStandardItem in a QStandardItem model so that when the data of one item is changed the data of the other item or items also changes? (I am not talking about multiple view windows).
If not, what is the best way to store an index (QPersistantModelIndex?) so that I can write my own script to update a QStandardItem on change event using the signal itemChanged (I guess?).
Would I store this index in a column of the model, or would I use a container?
Do I need to store it at all?
cheers
A
|_1(0)(1)(2) <--
|_2(0)(1)(2)
B
|_3(0)(1)(2)
|_4(0)(1)(2)
C
|_1(0)(1)(2) <-- C1(0) or (1) or (2) needs to automatically update when A1(0) or (1) or (2) is changed.
|_5(0)(1)(2)
...
QStandardItemModel
A
|_1(0)(1)(2) <--
|_2(0)(1)(2)
B
|_3(0)(1)(2)
|_4(0)(1)(2)
C
|_1(0)(1)(2) <-- C1(0) or (1) or (2) needs to automatically update when A1(0) or (1) or (2) is changed.
|_5(0)(1)(2)
...
To copy to clipboard, switch view to plain text mode
Bookmarks