import QtQuick import QtQuick.Window import QtQuick.Controls import ComboBoxHandler ApplicationWindow { id: mainWindow width: 600 height: 400 visible: true Button { text: "test" onClicked: { let data = []; for (let i = 0; i < 10; ++i) { data.push(i); } ComboBoxHandler.onItemChanged(data) } } }