Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 2

Qt-interest Archive, April 2007
QMovie MNG Errors


Message 1 in thread

Hello everybody,

I am writting about an error QMovie (Qt 3.3.7) spits out on the command line 
that looks like this while the movie is playing in one of my dialogs.

MNG error 4: Encountered unexpected end-of-file; chunk IHDR; subcode 0:0
MNG error 11: Function is invalid at this point; chunk IHDR; subcode 0:0
MNG error 11: Function is invalid at this point; chunk IHDR; subcode 0:0
MNG error 11: Function is invalid at this point; chunk IHDR; subcode 0:0
MNG error 11: Function is invalid at this point; chunk IHDR; subcode 0:0

I thought there maybe something wrong the mng files that are created using 
the GIMP 2.2.3 on Linux, but the files do actually play...
Anybody had this problem.

This is the general way I use the movies


MyDialogClass::MyDialogClass
:QLabel(....)
{
        m_paMovie = new QMovie(moviePath);
        m_paMovie->connectUpdate(this, SLOT(onMovieUpdate(const QRect&)));
}

where

MyDialogClass::onMovieUpdate(const QRect&)
{

	if ( NULL !=aMovie )
	{
		m_paMovie->disconnectUpdate(this, SLOT(onMovieUpdate(const QRect&)));
		m_paMovie->pause();

		setPixmap(m_paMovie->framePixmap());
		setMovie  (*m_paMovie);
	}

}

void MyDialogClass::show()
{
	if ( NULL != m_paMovie )
	{
		m_paMovie->unpause();
	}
	MyDialogClass::show();
}

Thanks
Christopher Probst

_________________________________________________________________
Essayez Windows Live Messenger: le futur de MSN Messenger! 
http://imagine-msn.com/messenger/launch80/default.aspx?locale=fr-ca

--
 [ signature omitted ]