QPropertyAnimation *animation = new QPropertyAnimation(item, "pos"); animation->setDuration(1000); animation->setEasingCurve(QEasingCurve::InOutCubic); animation->setEndValue(QPointF(100, 100)); animation->start();In this example, we create a QPropertyAnimation object that animates the position property of an item over a period of 1000 milliseconds. We then set the easing curve algorithm to the built-in InOutCubic curve which provides a smooth acceleration and deceleration effect to the animation. Finally, we set the end value we want the animation to reach and start it. The package library used here is the Qt framework.