Results 1 to 4 of 4

Thread: QImage buffer

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jun 2008
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default QImage buffer

    Hi, I'm using this code:

    Qt Code:
    1. QImage img(str);
    2. if(img.isNull()) {
    3. printf("Failed to open image\n");
    4. return NULL;
    5. }
    To copy to clipboard, switch view to plain text mode 

    but it seems that QImage doesn't delete the buffer when destroyed (at the end of the method where this block of code is in). I don't use the QImage to store my images (I convert to another structure)... so, I can't free this buffer memory and the system becomes with a lot of buffer memory without usage (I use a huge amount of images). Any idea? I'd like to get rid of this buffer.

    Thanks, Rafael
    Last edited by jpn; 23rd June 2008 at 19:43. Reason: missing [code] tags

Similar Threads

  1. [Qt4] How to load Url image into QImage?
    By Gonzalez in forum Qt Programming
    Replies: 6
    Last Post: 13th October 2014, 10:10
  2. Replies: 12
    Last Post: 7th September 2011, 16:37
  3. How to reuse a QImage in a While loop?
    By JoseTlaseca in forum Qt Programming
    Replies: 9
    Last Post: 5th June 2008, 07:19
  4. QImage constructor
    By Lele in forum Qt Programming
    Replies: 2
    Last Post: 11th January 2007, 12:06
  5. QImage from 8 bit char* RGB buffer
    By tboloo in forum Qt Programming
    Replies: 13
    Last Post: 15th April 2006, 19:56

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.