On Tue, Aug 24, 2010 at 4:50 AM, Marcos Santamaria <
[email protected]> 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/
_______________________________________________
Qt-qml mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-qml

Reply via email to