import QtQuick 2.5 import QtQuick.Controls 1.4 import QtQuick.Dialogs 1.2 import QtQml 2.2 ApplicationWindow { visible: true width: 640 height: 480 Item{ anchors.fill: parent; Component{ id: listview; ListView{ delegate:Text { text:modelData; } height:400; } } Component{ id: combobox; ComboBox{ } } Component.onCompleted: { //not in order, functions find and indexOf returns wrong values as it is unordered combobox.incubateObject(parent,{model:["async","1","2","3","4","5","6"]}); combobox.createObject(parent,{model:["sync","1","2","3","4","5","6"], x:200}); listview.incubateObject(parent,{model:["async","1","2","3","4","5","6"] , x:400}); listview.createObject(parent,{model:["sync","1","2","3","4","5","6"], x:600}); } } }