i have a button that should moved from point1 to point2 where point1 and point2 are at the same y position but different x position , this is the code:


animation = new QPropertyAnimation(ui->button, "geometry");
animation->setDuration(time);
animation->setStartValue(QRect(point1, size));
animation->setEasingCurve(QEasingCurve::Linear);
animation->setEndValue(QRect(point2,size));
animation->start();
my problem is that i want the moving path of the button from point1 to point2 is a semi circle or curve and not a line , how i can do that , plz help