From kde-bindings Tue Feb 16 22:39:56 2010 From: James Mansion Date: Tue, 16 Feb 2010 22:39:56 +0000 To: kde-bindings Subject: Re: [Kde-bindings] Qt, Qyoto buttons work intermediately Message-Id: <4B7B1EBC.8060909 () mansionfamily ! plus ! com> X-MARC-Message: https://marc.info/?l=kde-bindings&m=126636004816795 Arno Rehn wrote: > Yes, trapping show and hide events is not exactly a nice way to keep track of > used windows. But the visibility of a window is the only feature I could think > of that indicates whether a window is still used or not. > > I'm not sure that show and hide are quite the right events - its the destroy event really. You can logically regard the native window handle (which is owned by the windowing system) as owning a reference to its on proxy object, and release it when the native handle is destroyed. I guess systems that defer instantiation of the native window until first show or some such can result in a race anyway. Its definitely safer to keep such windows in a global somewhere. _______________________________________________ Kde-bindings mailing list Kde-bindings@kde.org https://mail.kde.org/mailman/listinfo/kde-bindings