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

List:       kde-devel
Subject:    QMovie sort of working with Qt 4.4rc1, but still an issue
From:       Erik <esigra () gmail ! com>
Date:       2008-02-08 9:46:53
Message-ID: 47AC250D.9010902 () gmail ! com
[Download RAW message or body]

I was pleased to see that QMovie is now sort of working since Qt 4.4rc1
(tested with Gentoo package). See
[http://bugs.kde.org/show_bug.cgi?id=142321]. But there seems to be a
remaining problem. The animation seems to flicker (becomes completely
white for a moment) after the first iteration. Then it seems to run
smoothly forever. Anyone else with Qt 4.4 who can reproduce this
problem? (Copy the attached animation and the program to a directory,
build and run.)

["panda.mng" (video/x-mng)]
["Makefile" (text/plain)]

main: main.cc
	g++ -Wall -Wextra -I /usr/include/qt4 -L /usr/lib/qt4/ -l QtGui main.cc -o main

clean:
	@rm -f Makefile~ main.cc~ main

["main.cc" (text/x-c++src)]

#include <QtGui/qapplication.h>
#include <QtGui/qlabel.h>
#include <QtGui/qmovie.h>
int main(int argc, char * * argv) {
	QApplication a(argc, argv);
	QMovie movie("panda.mng");
	QLabel label;
	label.resize(96, 96);
	label.setMovie(&movie);
	label.show();
	movie.start();
	a.connect(&a, SIGNAL(lastWindowClosed()), &a, SLOT(quit()));
	return a.exec();
}


>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


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

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