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

Easing an emitRate from 0 results in no particles on screen

XMLWordPrintable

      The following example results in no particles, at least on OS X. However if you shorten the duration on the NumberAnimation to 100 ms then it works. Also if this NumberAnimation has no easing curve it will start showing the particles.

      import QtQuick 2.0
      import QtQuick.Particles 2.0
      
      Rectangle {
          width: 400
          height: 400
          color: "black"
      
      
          ParticleSystem {
              id: ps
              anchors.fill: parent
      
              ImageParticle {
                  id: logoParticle
                  source: "images/particle.png"
                  color: "white"
                  anchors.fill: parent
              }
      
              Emitter {
                  id: pe
                  anchors.fill: parent
                  emitRate: 0
                  lifeSpan: 750
                  size: 10
                  endSize: 2
                  sizeVariation: 80
                  velocity: AngleDirection {angleVariation: 180; magnitude: 50}
              }
              
          }
      
          SequentialAnimation {
              running: true
              NumberAnimation { target: pe; property: "emitRate"; to: 1000; duration: 1000; easing.type: Easing.InSine }
          }
      
      }
      

        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:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes