[Solved] QPropertyAnimation: How to move a widget ?
General and Desktop
5
Posts
2
Posters
8.0k
Views
1
Watching
-
It's a matter of creating "QPropertyAnimation":http://qt-project.org/doc/qt-4.8/qpropertyanimation.html instance, setting endValue and/or keyframes, duration and starting animation. There is an example in QPropertyAnimation docs. If there is more animations involved you may consider using "State Machine Framework":http://qt-project.org/doc/qt-4.8/statemachine-api.html.
-
In that case, you could also use keyframes and only one QPropertyAnimation. Check second example: http://qt-project.org/doc/qt-4.8/animation-overview.html#animating-qt-properties