Jump to an item in PathView
-
I need to be able to jump directly to an item by its index in a PathView (I don't want the item to scroll into view). I do this in a ListView or a GridView by using the positionViewAtIndex(...) function, but the PathView does not have such a function. Is it possible to do this with a PathView?
-
Hi,
You can probably hack it with something like this:
@var prevDuration = pathView.highlightMoveDuration
pathView.highlightMoveDuration = 1
pathView.currentIndex = 10 //or wherever you want to jump
pathView.highlightMoveDuration = prevDuration
@I'd highly recommend adding a suggestion for PathView::positionViewAtIndex() at http://bugreports.qt.nokia.com.
Regards,
Michael