Web lists-archives.org

QMovie sort of working with Qt 4.4rc1, but still an issue




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.)

Attachment: panda.mng
Description: video/mng

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
#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 <<