Jeez that was a conflict with QMovie.
I had to add setCacheMode(QMovie::CacheAll); to avoid this.
//=============================================================================
//=============================================================================
ZeAnimationWidget
::ZeAnimationWidget(const QString & filePath,
{
setMovie(mMovie);
// I had to add this to avoid IO conflcts
mMovie
->setCacheMode
(QMovie::CacheAll);
mMovie->start();
}
//=============================================================================
//=============================================================================
ZeAnimationWidget::ZeAnimationWidget(const QString & filePath,
QWidget * parent) :
QLabel(parent)
{
mMovie = new QMovie(filePath, QByteArray(), this);
setMovie(mMovie);
// I had to add this to avoid IO conflcts
mMovie->setCacheMode(QMovie::CacheAll);
mMovie->start();
}
To copy to clipboard, switch view to plain text mode
Anybody knows why ?
Bookmarks