Hi
I want make a trick. I am writing kind of text editor, and I want make as much as possible space for editing (like Chrome browser makes maximum space for www page). So I want hide menu for most time. And I want show menu when user press Qt::Key_Alt, then I want activate this menu to mimic standard Qt::Key_Alt behaviour. But suprisingly I can't find function to activate/raise menu!!! I you don't known what I mean: run any application with menu bar, and then hit ALT key, then you will see how menu is activated - I want make the same from c++ code. I was trying send event to menu bar (QEvent::KeyPress with Qt::Key_Alt), but it does not work because I filter events for menu bar, so I get infinite loop. I must filter events for menu bars, because when user again click Alt key then I want hide menu bar.
So: how to activate menu from my c++ code?
Bookmarks