Ordering Property and Anchor changes



  • 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; }
        }
    ]
    

    @


  • Moderators


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.