I'm developing a gui application with Qt 4.6.3 on Windows platform.In the app, Qmenu has a submenu and after ı clicked this submenu's QAction the main menu is disappearing.For preventing this, ı used something like this.
connect(submenu,SIGNAL(triggered()),mainMenu,SLOT(show()));
But this time, main menu doesn't disappear if ı click desktop or anywhere outside the menu.
How can ı solve this problem?