Qt Code:
  1. QWidget *w = new QWidget(this);
  2. setCentralWidget(w);
  3.  
  4. QVBoxLayout *vLayout = new QVBoxLayout;
  5. w->setLayout(l);
  6.  
  7. for(int i = 0; i < 7; ++i) {
  8. QLabel *lbl = new QLabel(w);
  9. QMovie *movie = new QMovie(lbl);
  10. movie->setFileName("aq.gif");
  11. lbl->setMovie(movie);
  12. vLayout->addWidget(lbl);
  13.  
  14. movie->start();
  15. }
  16.  
  17. w->show();
To copy to clipboard, switch view to plain text mode 
animation doesn't work if no events(e.g. mousemove/mousepress)
if i create one QLabel - it's ok
in QGridLayout/QHBoxLayout - the same bug.



p.s. XP/Win7: MinGW/MSVC