[Qt-qml] Method to get an item given an index with ListView

Pris Matic prismatic.project at gmail.com
Sun Nov 13 22:50:14 CET 2011


Hiya,

Is it possible to get an item at a given index with ListView? I'm not
looking for the model item, but the delegate item belonging to the view.
You can set currentIndex, and then get currentItem, but it interferes with
highlight usage, and there's also a bug that causes your view to jump even
with highlight tracking disabled:
https://bugreports.qt.nokia.com/browse/QTBUG-22472. I want to get the item
without using the currentIndex method... Repeater has an 'itemAt(index)'
method, which is what I'm trying to emulate. Any ideas?

Pris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20111113/8a45ce59/attachment.html 


More information about the Qt-qml mailing list