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

TimelineAnimation emits finished() even on running: false

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.15.2
    • None
    • 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

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            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