ListView with Sections
Solved
QML and Qt Quick
-
I am having an issue understanding how to get the selected child of a ListView delegate, when using sections.
If I grab the currentIndex of the selected delegate, then try to grab that delegate... I get the delegate that is several indexes above the one I selected( 'several indexes above' depends on how many sections are above the selected item.
So.. the 'currentIndex' is correct as it seems to exclude the section items. However, using this:
listview.contentItem.children[idx]
returns the wrong item.
How do I get the right item? I need the item, due to the delegate includes a checkbox that I need to know if the user checked it or not....
-
@BTSTOnline Solved....
Using listView.itemAtIndex works...
-