[Interest] Automatic deletion of children of QObject

Thiago Macieira thiago.macieira at intel.com
Thu Jun 14 00:29:03 CEST 2012


On quarta-feira, 13 de junho de 2012 23.56.46, André Pönitz wrote:
> If deterministic order of destruction is needed one can always do it
> "manually" in the destructor body of the QObject-derived parent class
> instead of waiting for the parent's base class desctructor with
> it's "non-deterministic order of destruction" kicks in.

To be clear: it's deterministic, it's just not something that you should 
depend on. The order of children in the list may be altered by many operations 
during the lifetime of that QObject, including some that might not be under 
your control.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
     Intel Sweden AB - Registration Number: 556189-6027
     Knarrarnäsgatan 15, 164 40 Kista, Stockholm, Sweden
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20120614/8b1d275b/attachment.sig>


More information about the Interest mailing list