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

List:       kde-devel
Subject:    Re: QObject with multiple parents?
From:       "Aaron J. Seigo" <aseigo () kde ! org>
Date:       2009-10-16 16:03:35
Message-ID: 200910161003.35362.aseigo () kde ! org
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On October 16, 2009, Stefan Majewsky wrote:
> 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.

if you're working with Qt 4.6, use QWeakPointer instead. all the benefits, 
more explicit in what it's doing when used and a lot more efficient.

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Qt Development Frameworks

["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