[Interest] RotationAnimation and transform origin?

Jason H scorp1us at yahoo.com
Tue Dec 31 05:42:32 CET 2013


I also just noticed that on the console it is telling me:
QML RotationAnimation: Cannot animate non-existent property "angle"


However, the animation still happens....

I tried adding to the SequentialAnimation:
PropertyAction { target: head; property: "transformOrigin"; value: Item.Center }


But it still rotates around 0,0


________________________________
 From: Jason H <scorp1us at yahoo.com>
To: "interest at qt-project.org" <interest at qt-project.org> 
Sent: Monday, December 30, 2013 5:30 PM
Subject: [Interest] RotationAnimation and transform origin?
 


I am trying 

        Item { 
                id: head; 
                x: 0.0; y: 0
                transformOrigin: Item.Bottom

        }

        SequentialAnimation {
                id: headTilt
                RotationAnimation { target: head; duration: 500; from: 0; to: 45; easing.type: Easing.OutCubic;}

        }


but when I run it, it rotates around 0,0  (top left)

What do I have to do to get it to rotate around Item.Bottom?
_______________________________________________
Interest mailing list
Interest at qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20131230/04a281af/attachment.html>


More information about the Interest mailing list