diff options
Diffstat (limited to 'examples/declarative/snow/create.js')
-rw-r--r-- | examples/declarative/snow/create.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/examples/declarative/snow/create.js b/examples/declarative/snow/create.js new file mode 100644 index 0000000..2bdae4a --- /dev/null +++ b/examples/declarative/snow/create.js @@ -0,0 +1,12 @@ +var myComponent = null; + +function createNewBlock() { + if (myComponent == null) + myComponent = createComponent("ImageBatch.qml"); + + var obj = myComponent.createObject(); + obj.parent = layout; + obj.offset = maximumColumn + 1; + obj.ref = imagePanel; + maximumColumn += 5; +} |