Header question, simplified code

Tumbler { id: year } function startDate() { var countYear = -1; var arrYear = [] for(var y = 2015; y < 2020 + 1; ++y) { arrYear.push(y) countYear++; } yearColumn.model = arrYear yearColumn.currentIndex = countYear } 

In the tumbler itself, all the dates are displayed, but how to get not the currentIndex, but the tumbler text?

  • 2
    Finger in the sky: yearColumn.currentItem or yearColumn.model[yearColumn.currentIndex] - gil9red

0