Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

Ordering Property and Anchor changes

$
0
0
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; }         }     ]

Viewing all articles
Browse latest Browse all 4972

Trending Articles