Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Jump to an item in PathView
bundickt last edited by
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?
mbrasser last edited by
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.