[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-games-devel
Subject:    Re: [Kde-games-devel] Re: QMovie flickers badly!
From:       "Felix E. Klee" <felix.klee () inka ! de>
Date:       2002-01-06 11:51:44
[Download RAW message or body]

On Sunday 06 January 2002 12:07, Marc Mutz wrote:
> > in order to play a QMovie, I created a QMovie object and applied it
> > to a label which is placed in a KDialog:
> >   titleMovie = new QMovie("titlemovie.gif");
> >   titleMovieLabel->setMovie(*titleMovie);
>
> Are you sure that's the code? shouldn't it be setMovie(titleMovie)?

No, it's correct: the prototype of setMovie is
  void QLabel::setMovie ( const QMovie & movie ) [virtual slot]

> > However, the resulting animation flickers badly. What might be
> > causing this?
>
> <snip>
>
> Perhaps your gif doesn't specify inter-frame delays? Thus it gets played
> at the full speed possible?

I did specify inter-frame delays but they don't solve the problem. However, I 
found out that setting the background color of the QMovie to black with
  titleMovie->setBackgroundColor(QColor(0, 0, 0));
solves the problem!

Felix
_______________________________________________
kde-games-devel mailing list
kde-games-devel@mail.kde.org
http://mail.kde.org/mailman/listinfo/kde-games-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic