Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ComboBox {
- currentIndex: 2
- model: ListModel {
- id: cbItems
- ListElement { text: "Banana"; color: "Yellow"; textRole: "textRole1"}
- ListElement { text: "Apple"; color: "Green"; textRole: "textRole2"}
- ListElement { text: "Coconut"; color: "Brown"; textRole: "textRole3"}
- }
- width: 200
- onCurrentIndexChanged: console.debug(cbItems.get(currentIndex).text + ", " + cbItems.get(currentIndex).color + ", " + cbItems.get(currentIndex).textRole)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement