Results 1 to 2 of 2

Thread: How to unload a QPixmap

  1. #1
    Join Date
    Apr 2010
    Posts
    98
    Thanks
    19
    Thanked 8 Times in 6 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default How to unload a QPixmap

    In one of my class,there's a member QPixmap object:
    Qt Code:
    1. MyClass
    2. {
    3. ...
    4. private:
    5. QPixmap myPixmap;
    6. }
    To copy to clipboard, switch view to plain text mode 
    I will load a picture into it.And after a period,I want to unload the data (nullify it),make it just like uninitiated.How can I do this?
    It's not the goodbye that hurts,but the flashback that follow.

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: How to unload a QPixmap

    can't you just use
    Qt Code:
    1. myPixmap = QPixmap::QPixmap();
    To copy to clipboard, switch view to plain text mode 

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

    MorrisLiang (20th June 2010)

Similar Threads

  1. Replies: 0
    Last Post: 16th September 2009, 02:33
  2. Use of parent for automatic unload
    By PaceyIV in forum Newbie
    Replies: 9
    Last Post: 30th July 2009, 08:13
  3. Replies: 4
    Last Post: 28th August 2008, 13:13
  4. Replies: 1
    Last Post: 21st August 2008, 07:44
  5. Replies: 5
    Last Post: 9th April 2007, 14:26

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.