[Interest] Syncing tree views.

Ch'Gans chgans at gna.org
Fri Jul 29 12:39:55 CEST 2016

On 29 July 2016 at 22:25, william.crocker at analog.com
<william.crocker at analog.com> wrote:
> 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.)

KF5 has a solution for that. I'm not an Model/View expert, but i think
this is what you're looking for:


> Thanks.
> Bill
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest

More information about the Interest mailing list