Uploaded image for project: 'Qt for MCUs'
  1. Qt for MCUs
  2. QTMCU-19

SequentialAnimation and ParallelAnimation doesn't work with Behavior

    XMLWordPrintable

Details

    • 0
    • QUL Sprint 2.5/2021, Sprint 3.1/2021, Sprint 3.2/2021, Sprint 3.4/2021

    Description

      Using SequantialAnimation or ParallelAnimation in Behavior results in compilation error. Example:

      Behavior on opacity {
          SequentialAnimation {
              PauseAnimation { duration: 200; }
              NumberAnimation { duration: 120; }
          }
      }
      

      Complete compile output with the error can be found in the attached "build_error.txt".

      It is stated in the docs of Behavior (https://doc.qt.io/QtForMCUs/qml-qtquick-behavior.html#details):

      "Note: A property cannot have more than one assigned Behavior. To provide multiple animations within a Behavior, use ParallelAnimation or SequentialAnimation."

      so judging by that this should work.

      Attachments

        1. build_error.txt
          3 kB
        2. qtmcu19.zip
          1 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            jan-karasinski Jan KarasiƄski
            miikapernu Miika Pernu
            Daniel Drozdz Daniel Drozdz
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes