Results 1 to 7 of 7

Thread: Qtimeline and Pixmap Memory Cache

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Join Date
    Feb 2016
    Location
    Venice, California
    Posts
    87
    Thanks
    7
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Qtimeline and Pixmap Memory Cache

    I dont understand what you mean anda. Can you explain a bit more please?

    this is how my code is setup:

    Qt Code:
    1. def setImage():
    2.  
    3. self.Pixmap = QtGui.QPixmap(DIRECTORY + '/' + self.imageFiles[self.time_slider.value()])
    4. self.viewer.setPixmap(self.Pixmap)
    To copy to clipboard, switch view to plain text mode 
    This function is called every time QTimeline changes value.
    Line 3: self.time_slider.value() is driven by Qtimeline that runs at 24 fps

    This is not the correct way, as it loads a frame as it playing. How would I load the all the images before it starts playing. (assume its 300 images in the sequence)


    Is there something like this in Qt:
    http://pillow.readthedocs.io/en/3.2....eSequence.html

    Where I can load all the images in a folder into memory, and iterate through them via an index or something similar.
    Last edited by Nfrancisj; 6th May 2016 at 06:17.

Similar Threads

  1. QTimer and QTimeLine
    By martisho in forum Qt Programming
    Replies: 3
    Last Post: 24th November 2009, 14:29
  2. QPixmap: X11 "memory leak" due to shared pixmap data?
    By chezifresh in forum Qt Programming
    Replies: 0
    Last Post: 21st April 2009, 19:53
  3. QTimeLine
    By babu198649 in forum Newbie
    Replies: 6
    Last Post: 31st January 2008, 10:32
  4. QGraphicsItemAnimation and QTimeLine
    By babu198649 in forum Newbie
    Replies: 13
    Last Post: 31st December 2007, 11:34
  5. Pixmap memory consumption
    By bunjee in forum Qt Programming
    Replies: 9
    Last Post: 29th November 2007, 15:35

Tags for this Thread

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
  •  
Qt is a trademark of The Qt Company.