tags:

views:

39

answers:

1

Hi, I am trying to move a picture slowly from one position to another in QGraphicsScene. So I tried to use sleep, after that much of milli seconds I tried "setPos". But is not doing as I thought. Some body please help me

+3  A: 

sleep() is never what you want in an UI thread, as it blocks everything. Have a look at QGraphicsItemAnimation (setPosAt()) and QTimeLine.

Frank