ok, I tryed with the following code
	
	- void CMySprite::advance(int phase) 
- { 
- 	if( frame() != 0 ) 
- 		setFrame(frame() - 1); 
-   
- 	QCanvasItem::advance(phase); 
- } 
        void CMySprite::advance(int phase)
{
	if( frame() != 0 )
		setFrame(frame() - 1);
	QCanvasItem::advance(phase);
}
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
				
			
Bookmarks