Hi,

I try to launch a throbber (just a gif) during intensive process.

1) I tried to launch it directly like

Qt Code:
  1. QMovie movie(":/throbber.gif");
  2. movie.start();
  3. label->setMovie(movie);
  4.  
  5. ...
  6. //intensive process
To copy to clipboard, switch view to plain text mode 


The gif doesn't move at all during process and start moving after the intensive process

2)Using a QThread

Qt Code:
  1. CThreadMovie::CThreadMovie(QMovie * movie)
  2. {
  3. _movie = movie;
  4. }
  5.  
  6. void CThreadMovie::run()
  7. {
  8. if (_movie != NULL)
  9. _movie->start();
  10.  
  11. exec();
  12. }
To copy to clipboard, switch view to plain text mode 

I launch with this interface:

Qt Code:
  1. QMovie * movie = new QMovie(":/throbber");
  2. labelThrobber->setMovie(movie);
  3.  
  4. // create Thread instance
  5. _threadMovie = new CThreadMovie(movie);
  6.  
  7. _threadMovie->start();
To copy to clipboard, switch view to plain text mode 

It doesn't work

So the questions

What do I do wrong?
What should I do?

Thanks to all

David