Results 1 to 2 of 2

Thread: Free()

  1. #1
    Join Date
    Oct 2007
    Posts
    21
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question Free()

    hi all,
    I want to Free the specified local memory object in qt.
    How to do this???

  2. #2
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Free()

    Quote Originally Posted by AnithaRagupathy View Post
    hi all,
    I want to Free the specified local memory object in qt.
    How to do this???
    Do you mean you want to delete an object allocated on the heap? Or what?
    If that is not a QObject then you can just use the delete operator, otherwise, if it is a QObject and it has a parent, then the parent will take care of that. Of course, even if it is a QObject but parentless then you have to delete it manually.

Similar Threads

  1. What to free or not to free, that is the question
    By bruccutler in forum Qt Programming
    Replies: 1
    Last Post: 25th July 2007, 05:04
  2. Legal question about QT free edition
    By probine in forum General Discussion
    Replies: 10
    Last Post: 5th May 2007, 19:26
  3. Announce: Free Pascal / Lazarus for Qt
    By sekelsenmat in forum Qt-based Software
    Replies: 0
    Last Post: 10th October 2006, 13:28
  4. how to find the free space on a drive
    By klaus1111 in forum Qt Programming
    Replies: 2
    Last Post: 14th July 2006, 10:25
  5. to free or not to free
    By masoroso in forum Newbie
    Replies: 1
    Last Post: 17th April 2006, 18: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.