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

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

    XMLWordPrintable

Details

    • Q1/2020 Finale, Q2/2020 kick off

    Description

      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
      

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes