[Qt-interest] QWidget Event Problem , plz help

Aaron Lewis aaron.lewis1989 at gmail.com
Fri Aug 20 10:45:57 CEST 2010


Hi,

I'm currently working on a project , source code is here:

http://kde-apps.org/content/show.php?content=129006

Now i'm meeting a problem with QWidget , when i click on a menu , if i
don't *select* a submenu or action to trigger , it never disappears (
the menu ) , e.g if i click on desktop now , it should disappear when
losing focus.

So i should implement a function , when QWidget lost focus , it's called
and make the menu hide.

Which function should i re-implement to archive this ?

Thanks !

-- 
Best Regards,
Aaron Lewis - PGP: 0x4A6D32A0
FingerPrint EA63 26B2 6C52 72EA A4A5 EB6B BDFE 35B0 4A6D 32A0
irc: A4R0NL3WI5 on freenode



More information about the Qt-interest-old mailing list