Uploaded image for project: 'Qt Safe Renderer'
  1. Qt Safe Renderer
  2. QSR-1086

Update safety manual with timeline explicit start and end values

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • QSR 1.2
    • QSR 1.2
    • Documentation
    • None
    • I7f3603c8f3ca33c3640133326f9c485859ffdf1f

    Description

      Please find a correct page in the safety manual for the following addition (either animations or FAQ page). Feel free to use suitable wording to explain the topic. 

      When using the timeline, you must specify the keyframeGroup for start and end values to ensure those are taken into account in layout animation building.

      Assumptions on the implicit values do not work. Computer does only what it is told to do, it does not read minds.

      Example code:

       KeyframeGroup {
                      target: image
                      property: "width"
                      Keyframe {
                          easing.type: Easing.InOutQuad
                          frame: 0
                          value: 256
                      }
                      Keyframe {
                          easing.type: Easing.InOutQuad
                          frame: 500
                          value: 128
                      }
                      Keyframe {
                          easing.type: Easing.InOutQuad
                          frame: 1000
                          value: 64
                      }
                  }
      

      Another tip:

      You can validate your design easily with QML Scene tool. No need to put this in the manual, put recording it here, so we remember it in the future. This code snippet will change the state to default state or active state (see integration timelinetest for details)

          MouseArea {
              anchors.fill: parent
              onClicked: {
                  console.log("active")
                  if (rectangle.state == "active"){
                      rectangle.state = ""
                  } else {
                     rectangle.state = "active"
                  }
              }
          }

      Attachments

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

        Activity

          People

            tarjasundqvist Tarja Sundqvist
            assaarel Asmo Saarela (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes