Uploaded image for project: 'Qt Design Studio'
  1. Qt Design Studio
  2. QDS-4354

Explicitly set "rotation" and "scale" properties on Image and Text when using Timeline

    XMLWordPrintable

Details

    Description

      In QUL and in order to save RAM, the "scale", "rotation", and "transformOrigin" properties are not automatically available for QML objects by default. See https://doc.qt.io/QtForMCUs/qtul-qtquick-api-differences.html#conditional-availability-of-the-scale-rotation-and-transformorigin-properties

      To be able to set/read these properties from anywhere (e.g. Timeline), the QML object whose property must be accessed must have an explicit binding set for that property. See example in the link above.

      With QDS, when using a Timeline to animate the scale or rotation of an object, these bindings are not set, resulting in a compilation error when building the project with Qt for MCUs.
      Ideally, and whenever a keyframe is set for any of these transform properties, QDS should check if a binding already exists, and if not, create one which simply assign the default value.

      Attachments

        Issue Links

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

          Activity

            People

              algerman Aleksei German
              ylopes Yoann Lopes
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes