ok, I tryed with the following code

Qt Code:
  1. void CMySprite::advance(int phase)
  2. {
  3. if( frame() != 0 )
  4. setFrame(frame() - 1);
  5.  
  6. QCanvasItem::advance(phase);
  7. }
To copy to clipboard, switch view to plain text mode 

... it works backward and stops when the first image is reached.

So I would like to reimplement setFrameAnimation() ... but how is it possible to modify the enum FrameAnimationType in order to add my own animation types ? Should I declare my own enum with cycle, oscillation and my own values or is there another way to do it ?

About advance(), I also tryed without calling the base class method and it works as well, is it really necessary to call the base class method ?

thanks in advance