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

List:       kde-bindings
Subject:    Re: [Kde-bindings] Qt, Qyoto buttons work intermediately
From:       James Mansion <james () mansionfamily ! plus ! com>
Date:       2010-02-16 22:39:56
Message-ID: 4B7B1EBC.8060909 () mansionfamily ! plus ! com
[Download RAW message or body]

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
[prev in list] [next in list] [prev in thread] [next in thread] 

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