aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmlcomponent/data/createObject.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qml/qqmlcomponent/data/createObject.qml')
-rw-r--r--tests/auto/qml/qqmlcomponent/data/createObject.qml13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmlcomponent/data/createObject.qml b/tests/auto/qml/qqmlcomponent/data/createObject.qml
new file mode 100644
index 0000000000..da5db8e8e6
--- /dev/null
+++ b/tests/auto/qml/qqmlcomponent/data/createObject.qml
@@ -0,0 +1,13 @@
+import QtQuick 2.0
+
+Item{
+ id: root
+ property QtObject qobject : null
+ property QtObject declarativeitem : null
+ Component{id: a; QtObject{} }
+ Component{id: b; Item{} }
+ Component.onCompleted: {
+ root.qobject = a.createObject(root);
+ root.declarativeitem = b.createObject(root);
+ }
+}