[Qt-interest] does QT have a garbage collector ?

Jesús Fernández jsfdez at gmail.com
Mon Mar 2 11:28:56 CET 2009


If you give a parent to the QObject you can forget the deletion of the
object. When the parent is removed all the childs are removed.

On Mon, Mar 2, 2009 at 11:11 AM, knowledge seeker <
knowledgeseeker78 at gmail.com> wrote:

> Hi,
>
> I have just now started gettting a glimpse of how to make small
> programs in QT; out of curosity I wanted to know that whether creating
> QWidget objects on heap (using new - operator) require explicit call
> to delete, when objects are no longer needed.
>
> Or we can follow "create-and-forget" paradigm, and QT framework is
> resposible for the deletion of the object by means of some automatic
> garbage collector ?
>
> Regards,
> Knowledge Seeker.
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090302/c35a7db3/attachment.html 


More information about the Qt-interest-old mailing list