[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: How I refresh a QTreeView if the model data changes?
From: John Tapsell <johnflux () gmail ! com>
Date: 2009-12-31 17:04:37
Message-ID: 43d8ce650912310904s718e6e4ew5ff68f8126d71604 () mail ! gmail ! com
[Download RAW message or body]
2009/12/31 kuddel-fl <kuddel-fl@gmx.de>:
> Many thanks!
>
> but it's to difficult to log which lines have to removed and which to
> inserted, because the data are stored in another class.
> Now I simply call reset(). Maybe it is slow but it works.
It's probably not much slower, unless you're talking about a huge
number of entries with few changes. Trouble with that approach is that
you lose selection.
I have a similar with the System Activity program - I have to compare
the new list of processes against the old list and work out which have
been added, removed and moved. This was a big reason why it took so
long to get right.
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic