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

Add support for QML "animation on [property]"

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Not Evaluated Not Evaluated
    • None
    • QDS 2.2.0
    • 2D View
    • None

      Adding e.g. "Numberanimation on [property]" to animate some property results to "Behavior type is not supported in a Qt Quick UI form" warning and in Design view gets disabled so it can't be used anymore.

      This format is used quite often in QML files to reduce the amount of required code. So instead of:

      Text {
        id: text1
        text: qsTr("Text")
        NumberAnimation {
          target: text1
          property: "rotation"
          running: true
          from: 0
          to: 360
          loops: Animation.Infinite
          duration: 2000
        }
      }

      Just use:

      Text {
        text: qsTr("Text")
        NumberAnimation on rotation {
          from: 0
          to: 360
          loops: Animation.Infinite
          duration: 2000
        }
      }

      From QDS perspective these could also behave similarly, so allow designer view to be used while not runnign animations in the form editor.

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

            thohartm Thomas Hartmann
            kagro Kaj Grönholm
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes