Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Ordering Property and Anchor changes
Forum Updated to NodeBB v4.3 + New Features

Ordering Property and Anchor changes

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 2 Posters 742 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    uroller
    wrote on last edited by
    #1

    Is it possible to specify the order that property and anchor changes occur? In the following, I find that the AnchorAnimation runs first and then the PropertyChanges occurs. I'd like the reverse to happen; I'd like to change the visibility and then animate the movement.

    @
    states:
    [
    State
    {
    name: "FOCUS";
    PropertyChanges { target: arrow_u; visible: canNavUp(); }
    PropertyChanges { target: arrow_d; visible: canNavDown(); }
    AnchorChanges { target: arrow_u; anchors.horizontalCenter: panel.horizontalCenter; }
    AnchorChanges { target: arrow_d; anchors.horizontalCenter: panel.horizontalCenter; }
    },
    State
    {
    name: "CHANGE_FOCUS";
    PropertyChanges { target: arrow_u; visible: value.canIncr(); }
    PropertyChanges { target: arrow_d; visible: value.canDecr(); }
    AnchorChanges { target: arrow_u; anchors.horizontalCenter: value_text.horizontalCenter; }
    AnchorChanges { target: arrow_d; anchors.horizontalCenter: value_text.horizontalCenter; }
    },
    ]

    transitions:
    [
        Transition
        {
            AnchorAnimation { duration: 250; easing.type: Easing.OutCubic; }
        }
    ]
    

    @

    1 Reply Last reply
    0
    • p3c0P Offline
      p3c0P Offline
      p3c0
      Moderators
      wrote on last edited by
      #2

      Hi,

      I think you can use a "sequentialanimation":http://qt-project.org/doc/qt-5/qml-qtquick-sequentialanimation.html and a "scriptaction":http://qt-project.org/doc/qt-5/qml-qtquick-scriptaction.html here.

      157

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved