>
> 2013/12/9 Preet <[email protected]>
>
>>
>>
>> Have you tried connecting to the onAdd() signal and then calling
>> positionViewAtIndex?
>>
>>
>> http://doc-snapshot.qt-project.org/qdoc/qml-qtquick-listview.html#positionViewAtIndex-method
>>
>>
I was a bit confused about that one, it has to be done like this, right?
It's an attached signal handler, so...

Component {
   id: myDelegate
   Item {

      ListView.onAdd: {
         // here it is, but what is the index?
      }
   }
}

If i use that, what's the index to use in positionViewAtIndex?

What's the difference between that one and Component.onCompleted?
_______________________________________________
Interest mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to