[Qt] QApplication::focusChanged

Paul Ishenin webpirat at mail.ru
Sun Mar 2 06:33:48 CET 2008


Den Jean wrote:
> On Wednesday 27 February 2008 07:11:56 am Paul Ishenin wrote:
>   
>> We have QApplication_focusChanged_Event, but we cannot attach it to the
>> application object. Den, can you give a way to do that?
>>     
>
> look in mainwindow.pas : 
>
> Hook:=QApplication_hook_create(Handle);
> QApplication_focusChanged_Event(Method):=FocusChanged;
> QApplication_hook_hook_focusChanged(Hook,Method);
>   
why I have not seen that QApplication_hook_hook_focusChanged :)
> you could delete the hook at program exit.
> but then again every memory is released at program exit anyhow.
>   
Ok, I will delete it anyway in qt interface finalization code.
>
> http://users.pandora.be/Jan.Van.hijfte/qtforfpc/demos-V1.62_Qt4.3.1.tar.gz
>   
thanks.

Best regards,
Paul Ishenin.



More information about the Qt mailing list