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

KeyframeGroup assign property even animation didn't start

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Not Evaluated
    • None
    • 5.15
    • Quick: Timeline
    • None

    Description

      here is the demo:

      import QtQuick
      import QtQuick.Controls
      import QtQuick.Timeline
      
      Rectangle {
          id: root
          color: "#000000"
          width: 800
          height: 480
      
          Timeline {
              enabled: true
              animations: [
                  TimelineAnimation {
                      id: test
                      duration: 33 * 60
                      from: 0
                      to: 60
                      onStarted: console.log("TimelineAnimation onStarted")
                  }
              ]
              KeyframeGroup {
                  target: testitem
                  property: "testProperty"
                  Keyframe { frame: 0; value: "123123213" }
              }
          }
      
          Item {
              id: testitem
              property string testProperty
              onTestPropertyChanged: console.log("testProperty:", testProperty)
          }
      }
      

      in the above demo, onTestPropertyChanged is triggered even animation didn't run.
      which expect change when animation started as other property types like int.
      change frame: 0 to frame: 1 using as a temp solution.

      Attachments

        Issue Links

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

          Activity

            People

              Unassigned Unassigned
              jiu shanheng jiu
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes