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

Is it possible to define an action for the removal of an item in a ListView?

$
0
0
So I have a ListView with a few dynamically created items. Some of the items have started a timer. At some point, the list gets refreshed and all references to the timers are gone. Conclusion: Stop the timers before the item is removed from the list (with ListModel.clear()). Is it somehow possible to do this? I look for something like onVisibleChanged {do some fancy stuff when the visible property changed }. Or do you know any others solutions? Thanks in advance :-)

Viewing all articles
Browse latest Browse all 4972

Trending Articles