PDA

View Full Version : problem with aboutToHide signal on QMenu



eric_vi
20th September 2010, 00:54
I have created a QMenu (in fact a sub menu which is added to my menubar with setMenu)

i have connected an aboutToShow for this QMenu that works well,

my problem is that i have connected also an aboutToHide and i never get any signal when this sub menu goes away.

what am i missing.. is that signal suppose to come, if not how can i detect when a user close a menu without triggering any action.

thank you for your help

wysota
20th September 2010, 08:04
The signal is emitted in menu's hideEvent(). There is no condition there so it should always be emitted.

eric_vi
20th September 2010, 17:05
thank you for your answer...

it is strange i don't get this signal..following what you said, i even tried to subclass my qmenu in order to reach the hideEvent... but this event does not seem to be launched in my subclass either... is there something to add to trap those events.