import QtQuick 2.1 import QtQuick.Particles 2.0 Rectangle { id: root width: 600 height: 400 Rectangle { id: plate width: 300 height: 300 color: "orange" radius: 10 anchors.centerIn: parent ParticleSystem { anchors.centerIn: parent Emitter { id: emitP emitRate: 0 lifeSpan: 3000 size: 16 velocity: AngleDirection {angle: 0; angleVariation: 360; magnitude: 50; magnitudeVariation: 20} } ImageParticle { id: imageParticle color: "red" source: "particle.png" } } } Rectangle { id: button width: 60 height: 30 radius: 5 color: "blue" anchors.bottom: parent.bottom anchors.left: parent.left anchors.margins: 5 Text { anchors.centerIn: parent text: "SHOOT" color: "white" font.pixelSize: 16 } MouseArea { anchors.fill: parent onClicked: { emitP.burst(10); } } } }