summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/declarative/createComponent.qml
diff options
context:
space:
mode:
Diffstat (limited to 'doc/src/snippets/declarative/createComponent.qml')
-rw-r--r--doc/src/snippets/declarative/createComponent.qml9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/src/snippets/declarative/createComponent.qml b/doc/src/snippets/declarative/createComponent.qml
new file mode 100644
index 0000000..c4a1617
--- /dev/null
+++ b/doc/src/snippets/declarative/createComponent.qml
@@ -0,0 +1,9 @@
+import Qt 4.7
+import "componentCreation.js" as MyModule
+
+Rectangle {
+ id: appWindow
+ width: 300; height: 300
+
+ Component.onCompleted: MyModule.createSpriteObjects();
+}