import QtQuick 2.7 import QtQuick.Controls 2.2 import QtQuick.Layouts 1.3 ApplicationWindow { visible: true width: 640 height: 480 title: qsTr("Bug") Tumbler { model: ["AAAAA","BBBBB"] onCurrentIndexChanged : { console.log("onCurrentIndexChanged") console.log(currentIndex) } Component.onCompleted: { currentIndex = 1 } } }