Zunächst möchte ich gerne meinen Code zeigen:
Code: Alles auswählen
if(b==1)
{
}
if(b==2)
{
}
QPropertyAnimation*animation= new QPropertyAnimation(Zeiger->Button, "geometry");/*Der "Button" soll je nach if-Abfrage ein anderer sein*/
animation->setDuration(2000);
QRect startposition(10,80,91,81);
QRect endposition(250,130,91,81);
animation->setStartValue(startposition);
animation->setEndValue(endposition);
animation->start();
Hat jemand nützliche Infos für mich oder auch Websites, die gleiche/ähnliche Problematik behandeln?
Generelle Infos: Ich arbeite mit Qt 5.0.1 und mit http://qt-project.org/.