ComboBox {
anchors.fill: parent
model: rangeList
currentIndex: 1
}
rangeList contains 1,2,3 as data and currentIndex is 1. But when I run the UI it always takes currentindex as 0. Can anyone tell why it is taking currentIndex as 0 instead of 1.
ListModel { id: rangeList
ListElement { name: "1" }
ListElement { name: "2" }
ListElement { name: "3" }
ListElement { name: "4" }
}
[1,2,3]and as expected, the initial selection is2- derMrangeList. I guess the problem resides within that piece of code, hidden from us. - derMComboBoxshows correctly2upon startup when I copy both into the sameWindow. - derM