[Interest] Syncing tree views.

william.crocker at analog.com william.crocker at analog.com
Fri Jul 29 12:25:10 CEST 2016


Hello:

This is a desk top widgets question.
No QML here.

I have two QTreeView instances.
They both use the same base model,
but differ in subsequent layers of proxy models.

What is the most convenient way to keep then in sync.
When an index is selected in one, I want the corresponding
index to be selected in the other. Same with expanding and
collapsing. (I realize that use of a proxy model may cause
items to be omitted from one of the views, so the above only
applies to items which are common to both.)

Thanks.

Bill



More information about the Interest mailing list