Hi everyone)
Recently started learning Qt Quick and his type ParticleSystem.
I have a code:
ParticleSystem {
id: particlesystem
anchors.fill: sky
z:1000
ImageParticle {
id: stars
source: "content/images/star.png"
groups: ["stars"]
opacity: .5
}
Emitter {
id: starsemitter
anchors.fill: parent
emitRate: parent.width / 10
lifeSpan: 5000
group: "stars"
//shape: ellipse
}
}
The question is: Can I put Particles in an custom user figure?
Of course you can easily put in a rectangle using anchors.fill or in an ellipse using Emitter property shape, but I want do the same with a circle or triangle.
↧