You need to add a property to your class representing the robot that keeps track of the current angle of the arm. Then you can animate this property having a start and end value for the angle. Qt will then interpolate the movement properly. I have no idea what your mouse move event is supposed to do so I can't give you a precise example for your usecase.
Bookmarks