aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qtquick2/qquickloader/data/parented.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qtquick2/qquickloader/data/parented.qml')
-rw-r--r--tests/auto/qtquick2/qquickloader/data/parented.qml21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/auto/qtquick2/qquickloader/data/parented.qml b/tests/auto/qtquick2/qquickloader/data/parented.qml
new file mode 100644
index 0000000000..1c19d4d1a5
--- /dev/null
+++ b/tests/auto/qtquick2/qquickloader/data/parented.qml
@@ -0,0 +1,21 @@
+import QtQuick 2.0
+
+Item {
+ id: root
+ width: 300; height: 300
+
+ Component {
+ id: comp
+ Rectangle {
+ objectName: "comp"
+ parent: root
+ anchors.fill: parent
+ color: "blue"
+ }
+ }
+
+ Loader {
+ width: 200; height: 200
+ sourceComponent: comp
+ }
+}