[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: QIconView speed question
From:       Reginald Stadlbauer <reggie () trolltech ! com>
Date:       2001-02-08 12:23:22
[Download RAW message or body]

On Thursday 08 February 2001 03:02, mosfet wrote:
> I've redone the thumbnail manager for Pixie and it's quite fast :) Besides
> loading the thumbnails as they are viewed instead of all at once, I've
> noticed QIconView is much faster inserting items when hidden than when
> visible. For 1500 items, inserting takes ~40 secs while shown and ~6 secs
> while hidden. This includes when disabling Pixie's "view the last item
> inserted" behavior.
>
> It appears QIconView repaints or does layout calculation whenever inserting
> items even if they are not visible. Is there an easy way to fix this? I
> don't mind requiring users to wait until all items are inserted if it's
> going to be so much faster when entering a directory...

Well, I do some optimization using a timer to delay the re-layouting and 
updating of the iconview while inserting. Could it be that you call 
processEvents() or something like that while inserting items?

-- 
Reggie (reggie@trolltech.com)

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic