PDA

View Full Version : Create a Movie of a QPixmap



Nedec
1st January 2010, 16:23
Hi,

for a little program that makes a video of your desktop, i want to use QPixmap::grabWindow() every few seconds.

But then, i've to make a movie of the Pixmap's. I found the QMovie-class - but there is no way to add all images to a film.

Does Qt provide something like this? Or can I convert the QPixmap to an "ordinary" image (.png...) and use an platform-independent, external class?

wysota
1st January 2010, 19:14
Qt has no facilities to encode video files, as far as I know. QMovie is for something totally different. All you can do is to save each frame as a separate (png, jpeg, ...) file and then use external tools (like mencoder) to encode the video.