0

is it possible to deactivate the interpolation of the QGraphicsItemAnimation? i need a rectangle to "jump" between two positions, but i cannot use a QTimer due to the construction of the other classes, so the only thing that seems to work is an animation.

1 Answers1

0

i got the idea of using this class from here: Smooth animations with QGraphicsScene

now that i know it is deprecated i figured using QPropertyAnimation combined with QSequentialAnimationGroup is doing the trick. by using animation duration of 0 and adding pause to the animation group i get a "jump"

Community
  • 1
  • 1