1

I'm writing a small game and in the settings it uses a ListItem.ValueSelector in the settings, i'd like to if it's possible attach some event on it like with a mouse area, ie:

MouseArea {
anchors.fill: parent
onClicked: {
    //do something when clicked 
    }
}

an event that triggers when the selectedIndex: property in changes a ListItem.ValueSelector, any help?

1 Answer 1

1

In QML, any property defined should produce a corresponding on<Property>Changed callback. Keeping in mind that it will capitalize the first letter of the property, a selectedIndex property should provide an onSelectedIndexChanged callback.

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .