On 06/12/12 21:36, Jochen Becher wrote: > In my case childB is not a child of childA but both are children of > parent (widgets in the same group/layout). But childB has a reference to > childA which might be accessed in destructor. So I have either:
If the reference is a weak one (ie. "use it if it's available, but don't break when it's gone for some reason"), you can just use QPointer (or better, as I've just learned, the QWeekPointer). With kind regards, Jan -- Trojita, a fast e-mail client -- http://trojita.flaska.net/
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest