import QtQuick 2.0 import Ubuntu.Components 0.1 MainView { width: units.gu(60) height: units.gu(80) Page { Tabs { id: tabs Component.onCompleted: { for (var i in ["2", "2b", "3", "4", "5"]) Qt.createQmlObject("import Ubuntu.Components 0.1; Tab { title:'%1' }".arg(i), tabs) } Tab { title: "1" } } } }