[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: QObject with multiple parents?
From:       Thiago Macieira <thiago () kde ! org>
Date:       2009-10-16 16:07:38
Message-ID: 200910161807.49179.thiago () kde ! org
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


Em Sexta-feira 16. Outubro 2009, ās 17.43.29, Stefan Majewsky escreveu:
> Am Freitag 16 Oktober 2009 16:56:54 schrieb Stephen Kelly:
> > Which one would be returned from QObject::parent()? Which one owns the
> >  child and deletes it? Why do you need this?
> 
> I was thinking about proxy objects that are automatically installed between
> the object and its parents. When all proxies are gone, the object itself is
> destroyed.
> 
> But now that I think about the problem again, QPointer might be enough.

Use QWeakPointer, not QPointer.
-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Senior Product Manager - Nokia, Qt Development Frameworks
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358

Qt Developer Days 2009 | Registration Now Open!
Munich, Germany: Oct 12 - 14     San Francisco, California: Nov 2 - 4
      http://qt.nokia.com/qtdevdays2009

["signature.asc" (application/pgp-signature)]

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic