Archived:Animating graphics item position and rotation simultaneously
This series of snippets demonstrates how to implement nice animation effects into your Qt UI application. Qt 4.6 has Qt Animation Framework as a built-in feature. Documentation can be found here: 
This snippet shows how to execute parallel animations using QParallelAnimationGroup. Item position and rotation are animated simultaneously.
See full example code here: File:Animation fw.zip
Qt 4.6 has been installed.
Create animations in QParallelAnimationGroup to execute them simultaneously.
void PictureItem::animatePosAndAngle(const QPointF& start, const QPointF& end,
int startAngle, int endAngle)
// Create animation group
// Animations in the group are executed in same time
QParallelAnimationGroup *group = new QParallelAnimationGroup;
// Create rotation animation
QPropertyAnimation* anim1 = new QPropertyAnimation(this, "rotationAngleY");
// Create position animation
QPropertyAnimation* anim2 = new QPropertyAnimation(this, "pos");
// Add animations into the group
// Execute group
Parallel animation has been created using QParallelAnimationGroup.