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

Empty ParallelAnimation/SequentialAnimation emit stopped() signal twice and earlier than started() signal

XMLWordPrintable

    • Q1/2020 Finale, Q2/2020 kick off

      Here is tiny example runnable by qmlscene:

      Rectangle {
          id: root
          width: 600
          height: 400
          color: "seagreen"
      
          ParallelAnimation {
      //    SequentialAnimation {
              id: animation
              running: true
      
      //        ColorAnimation {
      //            target: root
      //            property: "color"
      //            to: "salmon"
      //            duration: 2000
      //        }
      
              onStarted: console.log("animation started")
              onStopped: console.log("animation stopped")
          }
      }
      

      With ColorAnimation commented out, the log looks like this:

      qml: animation stopped
      qml: animation stopped
      qml: animation started
      

      Expected output (wich is true for the case with ColorAnimation):

      qml: animation started
      qml: animation stopped
      

        For Gerrit Dashboard: QTBUG-48193
        # Subject Branch Project Status CR V

            smd Jan Arve
            dvolosnykh Dmitry Volosnykh
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes