[Qt-interest] menu does not disappear when clicking on submenu action

John Weeks john at wavemetrics.com
Tue Aug 2 21:11:19 CEST 2011


On Aug 1, 2011, at 3:21 PM, Mandaya Prakash wrote:

> I am kind of surprised what is wrong I m doing when trying to use QWidgetAction in my application.
> 
> I have simple QLable in createWidget() function which I have overwritten. But When I click on this submenu item my menu still stays on the screen it never disappears.
> 
> I have tried all sort of hide() close() setVisible(false) to my menu but it has no effect at all.
> This is happening on my Mac Cocoa.
> 
> Can any one please give me some hint how to do this.
> 
> -- 
> Best Regards,
> 
> Prakash
> 
> 
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-interest

This is a common problem. Google QWidgetAction and you will find a couple of solutions.

Regards, John Weeks

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110802/27429cf9/attachment.html 


More information about the Qt-interest-old mailing list