Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

How can I access the "currentItem" of a ListView before it is changed by selecting a new item?

$
0
0
So I have some animations happening on my ListView items in the case that they are too long for their container. When the user hits an up or down arrow key I can set these animations in motion (if necessary) on the next item the user is selecting using the “onCurrentItemChanged” property/event. Problem is if the current Item is being animated then I need to stop that animation before moving onto the item in the list. Any idea how to do that? I can’t find an event that allows me to trap the currentItem and make changes before the current item is changed to the next item.

Viewing all articles
Browse latest Browse all 4972

Trending Articles