QTimer solved my problem. Thanks so much.
QTimer solved my problem. Thanks so much.
I had a quick look at your code. I really suggest you make "angle" a property and use QPropertyAnimation instead of that timer. This will give you much better control over what is going on in your program assuming you want it to do some more things than to just animate one single arm movement or if you want to make it look more realistic (e.g. by changing linear movement to non-linear one that contains some ease-in/ease-out behaviour).
kango (14th February 2013)
Bookmarks