import QtQuick 2.0Rectangle{width:400height:400Rectangle{id: myItem
objectName:"myItem"width:100height:100color:"green"x:100- myItem.y
Binding on x {when: myItem.y >50value: myItem.y
}/*NumberAnimation on y { loops: Animation.Infinite to: 100 duration: 1000 }*/}}