[Qt-interest] How does QT release its memory?

Tim W timpie.w at gmail.com
Sat Dec 13 09:40:14 CET 2008


<quote http://doc.trolltech.com/4.4/objecttrees.html >

QObjects <http://doc.trolltech.com/4.4/qobject.html> organize themselves in
object trees. When you create a
QObject<http://doc.trolltech.com/4.4/qobject.html> with
another object as parent, it's added to the parent's
children()<http://doc.trolltech.com/4.4/qobject.html#children> list,
and is deleted when the parent is ....

</quote>

Cheers,
Tim

On Sat, Dec 13, 2008 at 8:11 AM, 李亮亮 <leecomcn at hotmail.com> wrote:

>  Hi all,
> I am new to qt, and I have read some tutorials.
> I found all of then use *new* to create objects, but never use *delete* to
> release.
> Why?
>
> Tuvok
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>


-- 
An Apple a day keeps Windows away

ACCU - http://www.accu.org - Professionalism in Programming.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20081213/977ce887/attachment.html 


More information about the Qt-interest-old mailing list