aboutsummaryrefslogtreecommitdiffstats
path: root/examples/declarative/particles/allsmiles/plain.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/declarative/particles/allsmiles/plain.qml')
-rw-r--r--examples/declarative/particles/allsmiles/plain.qml26
1 files changed, 26 insertions, 0 deletions
diff --git a/examples/declarative/particles/allsmiles/plain.qml b/examples/declarative/particles/allsmiles/plain.qml
new file mode 100644
index 0000000000..890a5782d1
--- /dev/null
+++ b/examples/declarative/particles/allsmiles/plain.qml
@@ -0,0 +1,26 @@
+import QtQuick 2.0
+import QtQuick.Particles 2.0
+
+Rectangle{
+ color: "goldenrod"
+ width: 2000
+ height: 2000
+ ParticleSystem{id: sys}
+ ImageParticle{
+ id: up
+ system: sys
+ source: "content/singlesmile.png"
+ }
+ Emitter{
+ anchors.centerIn: parent
+ system: sys
+ emitRate: 1000
+ size: 20
+ lifeSpan: 10000
+ speed: AngledDirection{angleVariation: 360; magnitudeVariation: 100;}
+ }
+ MouseArea{
+ anchors.fill: parent
+ onClicked: up.autoRotation = !up.autoRotation
+ }
+}