Ok, I'm with you. So how do I make sure all the images have loaded in the 
model? 

-J


On Jul 13, 2010, at 8:02 PM, <[email protected]> wrote:

> 
> On 14/07/2010, at 7:41 AM, ext Jason H wrote:
> 
>> 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?
>> 
> 
> If you flick the view and have a look at how the data is loading, you will 
> see that by the time the animation has started, all the XML data has already 
> been loaded; you can flick to the bottom of the list and see that the last 
> article is already there. 
> 
> So, the problem isn't that the animation has started before the XML has been 
> loaded; the problem is that the ListView delegate dynamically resizes, 
> because as the ListView loads the images for each news articles, the delegate 
> dynamically resizes to cater for the size of the loaded image. To resolve 
> this, you can set a fixed height for your ListView delegate, or otherwise 
> ensure that the images have already been loaded before starting the animation.
> 
> 
> Bea
> 

_______________________________________________
Qt-qml mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-qml

Reply via email to