From kde-core-devel Thu Feb 08 12:23:22 2001 From: Reginald Stadlbauer Date: Thu, 08 Feb 2001 12:23:22 +0000 To: kde-core-devel Subject: Re: QIconView speed question X-MARC-Message: https://marc.info/?l=kde-core-devel&m=98163431223447 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)