Results 1 to 2 of 2

Thread: Create a Movie of a QPixmap

  1. #1
    Join Date
    Dec 2009
    Posts
    5
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Create a Movie of a QPixmap

    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?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Create a Movie of a QPixmap

    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.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. The following user says thank you to wysota for this useful post:

    Nedec (1st January 2010)

Similar Threads

  1. Replies: 5
    Last Post: 17th May 2009, 20:02
  2. Position in a QPixMap created from a QGraphicsScene
    By stevel in forum Qt Programming
    Replies: 8
    Last Post: 8th April 2009, 22:39
  3. create QPixmap semi-transparent
    By jamd in forum Qt Programming
    Replies: 2
    Last Post: 23rd June 2006, 08:08
  4. QPixmap and HBITMAP
    By ToddAtWSU in forum Qt Programming
    Replies: 1
    Last Post: 21st June 2006, 16:24
  5. How to create QPixmap from unsigned character array?
    By rashidbutt in forum Qt Programming
    Replies: 4
    Last Post: 16th May 2006, 18:25

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.