A ListView appears to be a better match than the more complicated GridLayout and Repeater.
ListView {
delegate: Item {
width: ListView.view.width
height: childrenRect.height
Text {
anchors.right: parent.horizontalCenter
text: modelData.firstPart + ":"
}
Text {
anchors.left: parent.horizontalCenter
text: modelData.secondPart
}
}
}
The JavaScript engine will indeed take ownership of the object created by Qt.createComponentObject. This is not documented specifically because in general, any object returned by a JavaScript function is normally managed by the garbage collector.