QML - How to use GridView::itemAt(real x, real y)?
I can get item of
var item = repeater.itemAt(index);
But how can I get item of
GridView? I saw itemAt function. But it is different from
Repeater. It wants
ycoordinates but we can use
Repeater. How can I access the item? Thanks.
i don't know if it works but try:
I solved this problem like this:
gridView.currentIndex = lastIndex; var lastItem = gridView.currentItem; gridView.currentIndex = currentIndex; var currentItem = gridView.currentItem;