Important: Please read the Qt Code of Conduct -

Qt 5.6 Android can't change particle color in Emitter.onEmitParticles

  • HI all,
    I found problem with my Qml code

    onEmitParticles: {
                for (var i=0; i<particles.length; i++) {
                    var particle = particles[i];
                    particle.x = var_x; // work properly on both Android and Desctop
                    particle.y = var_y;  // too
           = var_r;  // this line and all lines below
           = var_g; // do not work on Android ((
           = var_b;
                    particle.startSize = var_ss;
                    particle.endSize = var_es;

    maybe someone have any ideas?
    thanks for help and good luck

  • use few ImageParticle with different colors, you stupid bastard ;)

  • Hi, I already replied to your other post in the game development forum (
    You can have a look at V-Play Engine which offers easier usage of QML Particles with the ParticleVPlay type. There's also a ParticleEditor that makes custom particle creation easier.


  • = var_r;  // must be a float value 0..1 = var_g; // must be a float value 0..1 = var_b; // must be a float value 0..1

Log in to reply