Hi
i use qt+ogre
and i make animation to my object
it work good
but i have problem in update
when i clic on the window or i clic on dockwidget
it stop animation, but it start when i move the mouse only
(if i stop the moving of mouse the animation stop too)
that's my code
Qt Code:
  1. void OgreWidget::paintEvent(QPaintEvent *e)
  2. {
  3.  
  4. ogreRoot->_fireFrameStarted();
  5.  
  6. ogreRoot->_fireFrameRenderingQueued();
  7.  
  8. ogreRenderWindow->update();
  9. ogreRoot->_fireFrameEnded();
  10. number_frame=number_frame+10;
  11.  
  12. if(number_frame<framme.size())
  13. animation1();
  14. ogreRenderWindow->update();
  15. animation2();
  16. ogreRenderWindow->update();
  17.  
  18. e->accept();
  19. ogreRenderWindow->update();
  20. //update();
  21. }
To copy to clipboard, switch view to plain text mode 
if i do not delete "update()" it show/delete/show/delete.....(paint and repaint ) the scene