[Qt-qml] QML GridView vertical scroll behaviour
Eduardo Fleury
eduardo.fleury at openbossa.org
Tue Aug 24 17:03:11 CEST 2010
On Tue, Aug 24, 2010 at 4:50 AM, Marcos Santamaria <
marcos.santamaria at mirada.tv> wrote:
>
> When I try to scroll the GridView it has a rare behaviour.
> Well, it begins moving the focus and freezing for a while. Then it
> allocates some delegates components on memory ( console output traces ) and
> finishes moving the focus to the new item.
>
>
Hi, the GridView allocates delegates to show items that fill the visible
screen plus some additional as set in the cacheBuffer property you
mentioned.
What is the problem you are seeing? Are the delegates too complex?
In theory playing with cacheBuffer you could make everything be loaded at
once (same behavior as using a Repeater inside a Flickable instead of a List
View) but for large number of items that means too much memory usage.
WRT to GridView itself, I'm not sure whether it allocates new delegates when
you scroll or whether it reuses the old old ones with new data, as in a
circular list, which would be faster (mallocs / constructors are slow).
--
Eduardo M. Fleury
OpenBossa - INdT
http://eduardofleury.com/
http://www.openbossa.org/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20100824/38907c4b/attachment.html
More information about the Qt-qml
mailing list