Results 1 to 12 of 12

Thread: QPixmaps don't seem to deallocate from memory(solved)

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #6
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: QPixmaps don't seem to deallocate from memory

    Without keyword "new":
    Qt Code:
    1. QList<QPixmap> thumbnails;
    2. ...
    3. // qDeleteAll(thumbnails); // remove this
    4. thumbnails.clear();
    5. ...
    6. QPixmap image = QPixmap(database->cell(currentRows.at(row), "thumbnail" + thumbnailSize));
    7. thumbnails += image;
    To copy to clipboard, switch view to plain text mode 
    J-P Nurmi

  2. The following user says thank you to jpn for this useful post:

    timothy.crosley (14th August 2007)

Similar Threads

  1. Memory Leak in my Application :-(
    By Svaths in forum Qt Programming
    Replies: 4
    Last Post: 27th July 2007, 19:42

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.