Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

ItemParticle size



  • I can emit ItemParticle with the code below. However, I can't figure out a way how to affect ItemParticle size with size and endSize property of Emitter. ItemParticle has always 5 pixel size.

    ParticleSystem {
        id: particleSystem
    }
    
    Emitter {
        id: collisionEmiter
        anchors.horizontalCenter: parent.horizontalCenter
        anchors.verticalCenter: parent.verticalCenter
        width: parent.width / 2
        height: 1
        system: particleSystem
        emitRate: 300
        lifeSpan: 400
        lifeSpanVariation: 200
        size: 150
        endSize: 32
        enabled: true
        velocity: AngleDirection { angle: 10; angleVariation: 8; magnitude: 150; magnitudeVariation: 10 }
    
        ItemParticle {
            system: particleSystem
            delegate: Component {
                Rectangle {
                    width: 5
                    height: 5
                    color: 'red'
                }
            }
        }
    }
    


  • I am also facing the same problem, please let me know if you got any solution for this.


Log in to reply