[Qt-qml] QML Questions
Jason H
scorp1us at yahoo.com
Tue Jul 13 23:41:12 CEST 2010
I'm putting this out on the list so others can refer to it...
Ah, I see, as the model loads stuff async, it adjusts content height
continuously. I could very well use count, but I don't know the number of pixels
per item.
I really think the solution is some how to have the model inform the view it is
ready and to start the animation. How can I do that?
----- Original Message ----
From: "bea.lam at nokia.com" <bea.lam at nokia.com>
To: scorp1us at yahoo.com
Sent: Mon, July 12, 2010 7:53:47 PM
Subject: Re: [Qt-qml] QML Questions
On 12/07/2010, at 11:11 PM, ext Jason H wrote:
> I integrated your changes and it works... sort-of... There is a horrible
>flicker
>
> that now happens. the list jumps up and down by 20-50 pixels occasionally.
>
>
This is because the duration binds to contentHeight:
>
>
> duration: lv.contentHeight*10
Whenever the contentHeight changes, the duration is reset.
I suggest binding to something that doesn't change so much, like
ListView::count.
More information about the Qt-qml
mailing list