[Qt] QApplication::focusChanged

Den Jean Den.Jean at telenet.be
Wed Feb 27 18:15:49 CET 2008


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);

you could delete the hook at program exit.
but then again every memory is released at program exit anyhow.


http://users.pandora.be/Jan.Van.hijfte/qtforfpc/demos-V1.62_Qt4.3.1.tar.gz




More information about the Qt mailing list