[Qt-interest] QWidget Event Problem , plz help

Pritam Ghanghas pritam_ghanghas at infosys.com
Fri Aug 20 14:04:56 CEST 2010


Hi

To hide the widget on loosing focus, you can reimplement 
focusOutEvent().

I haven't looked at your code though and I haven't done a single desktop
application till now. So, there may be a cleaner/better way of doing
this.


--
Thanks,
Pritam


On Fri, 2010-08-20 at 14:15 +0530, Aaron Lewis wrote:
> 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 !
> 




More information about the Qt-interest-old mailing list