2013/12/11 Preet <[email protected]>

>
> The index is exposed just as 'index' in the delegate itself.
>
>
Ah. Thank you! Somehow missed that earlier.



> > What's the difference between that one and Component.onCompleted?
>
> I think Component.onCompleted is run any time something creates the
> component, which might not be what you want if you're using the same
> delegate for multiple views. The exact point at which ListView.onAdd
> is called might also vary and that might be important if you're using
> transition animations when modifying the ListView elements.
>

Makes sense now :-)


> There are some other ways you can do it too -- using the
> 'onCountChanged' handler in the ListView, etc.
>
>
Thanks again!
_______________________________________________
Interest mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to