Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-37543

Increasing the emitRate of a running particle emitter is buggy

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.2.1, 5.3.0 Alpha
    • Quick: Particles
    • None

      In the following example slowly move the top slide to the right. Instead of the emission smoothly increasing all particles keep being killed/reset. However once you reach the end of the slider moving it left and right has the correct behaviour.
      The second slider changes the particle size and works correctly.

      import QtQuick 2.2
      import QtQuick.Window 2.1
      import QtQuick.Particles 2.0
      import QtQuick.Controls 1.1
      
      Window {
          visible: true
          width: 1000
          height: 1000
          color: "black"
      
      
          ParticleSystem {
              id: ps
              anchors.fill: parent
      
              ImageParticle {
                  id: p1
                  source: "qrc:///particleresources/glowdot.png"
                  anchors.fill: parent
                  color: "#0b471e"
                  alpha: 0
                  colorVariation: 0.3
              }
      
              Emitter {
                  id: logoEmitter
                  anchors.fill: parent
                  emitRate: v1.value
                  lifeSpan: 750
                  size: 100
                  endSize: 2
                  sizeVariation: 80
              }
          }
          Column {
              Slider {
                  id: v1
                  value: 0
                  minimumValue: 0
                  maximumValue: 10000
                  width: 300
              }
          }
      
      }
      
      

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            aalpert Alan Alpert
            designker Nigel Hietala
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes