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

Selective crop when using Transitions

$
0
0
I don’t think that has anything to do with how you create the object, sometimes you can’t change the position (x/y) because of the layout or anchors, in your case it’s hard to see why it doesn’t work but I usually use a transform translation, in my opinion that is the best way to do this animations anyway (without changing the actual position, so you only move it temporary for the animation). e.g. use the transform property Rectangle {   transform: Translate { id: translate } }   translate.x = 100 that should always work, instead of changing the x value itself you change the tranform.x value essentially. Translate is relative to the item obviously :)

Viewing all articles
Browse latest Browse all 4972

Trending Articles