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

Behaviour on is not executed when value change through a PropertyAction

    XMLWordPrintable

Details

    Description

      The following code does not execute the Behaviour on opacity:

      [...]

      transitions: [
      Transition {
      PropertyAction

      { target: closeButton; properties: "opacity"; value: 1 }

      }
      ]

      [...]

      Image {
      id: closeButton
      source: "foo.png"
      opacity: 0

      Behavior on opacity {
      NumberAnimation

      { duration: 2000 }

      }
      }

      [...]

      Whereas replacing the PropertyAction by:
      ScriptAction { script:

      { closeButton.opacity = 1; }

      }

      Executes the Behaviour correctly.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            jzellner Johannes Zellner
            Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes