[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-30 22:31:40
Message-ID: 43d8ce650912301431l2a98a04ayd19a1819b10faf70 () mail ! gmail ! com
[Download RAW message or body]
2009/12/31 Pedro Lopez-Cabanillas <pedro.lopez.cabanillas@gmail.com>:
> On Wednesday, December 30, 2009, Tomaz Canabrava wrote:
>> I have to agree with john here. ;)
>
> I've made one for KMidimon. The basic (crude) coding took me about 3 weeks,
> including a ProxyModel used for filtering. The model provides readable
> representations of MIDI events from a sequence stored in a Song container (a
> QList).
> http://kmetronome.cvs.sourceforge.net/viewvc/kmetronome/kmidimon/src/sequencemodel.h?view=markup
> http://kmetronome.cvs.sourceforge.net/viewvc/kmetronome/kmidimon/src/proxymodel.h?view=markup
> Screenshot: http://sourceforge.net/dbimage.php?id=220552
>
> Indeed, the program records (and plays) MIDI events, so it has to refresh the
> view when new events have been received. But I'm not very satisfied with the
> performance, it is sloooow. Please, has somebody a suggestion about improving
> the performance?
I had a quick look through the source code but I don't see anything
obviously wrong. Probably best to run it through a profiler, or write
some qt benchmark unit tests.
>> 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