Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

How to put a particles(from ParticleSystem) in an custom user figure?

$
0
0
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.

Viewing all articles
Browse latest Browse all 4972

Trending Articles