PDA

View Full Version : Free()



AnithaRagupathy
14th October 2007, 06:17
hi all,
I want to Free the specified local memory object in qt.
How to do this???

marcel
14th October 2007, 09:17
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.