Created
July 27, 2015 17:35
-
-
Save agesome/7fcacb0884362947da88 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import QtQuick 2.3 | |
Rectangle { | |
id: root | |
width: 360 | |
height: 360 | |
Component { | |
id: someComponent | |
Item { | |
objectName: "Item_n_" + index | |
Component.onCompleted: console.log("objectName:", objectName) | |
} | |
} | |
Repeater { | |
objectName: "repeater" | |
delegate: someComponent | |
model: 10 | |
} | |
Component.onCompleted: { | |
for (var i = 0; i < root.children.length; ++i) | |
console.log("child objectName:", root.children[i].objectName) | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment