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

TimelineAnimation emits finished() even on running: false

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.15.2
    • Fix Version/s: None
    • Labels:
      None
    • Platform/s:
      Windows

      Description

      Documentation says: "This signal is emitted when the animation has finished naturally. It is not emitted when running is set to false, nor for animations whose loops property is set to Animation.Infinite." https://doc.qt.io/qt-5/qml-qtquick-animation.html#finished-signal

      Though I am changing running to false through the states PropertyChange, it still emits finished() instantly.

      Check the attached file, notice that "finished" message appears even if you click just for a moment.

      Don't know if the usual Animation type has the same issue, but I guess TimelineAnimation inherits NumberAnimation, so they can share behaviour.

        Attachments

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

          Activity

            People

            Assignee:
            qt.team.quick.subscriptions Qt Quick and Widgets Team
            Reporter:
            algerman Aleksei German
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes