[Qt-qml] Getting the index of a ListView delegate

Cornelius Hald hald at icandy.de
Fri Mar 18 11:25:39 CET 2011


Hi,

on clicking a ListView delegate, I'd like to know the index of that
delegate. ListView.currentIndex does not help because I'm displaying
several items at the same time. Is there something else? I thought there
would be an attached property 'ListView.index' but there isn't.

I'm trying to link a ListView with a PathView. They are displaying
different aspects of the same model. If the user clicks on an entry in
the ListView, I want the PathView to show the item with the index
selected by the ListView.

I'd be happy to hear your ideas!
Conny




More information about the Qt-qml mailing list