Dear All,

In my application, when menu with sub menu is open , programmatically sending key up/down event is not working for the submenu.

Sub menu is opened programmatically using following code

Qt Code:
  1. QKeyEvent event(QEvent::KeyPress, Qt::Key_Return, Qt::NoModifier);
  2. QApplication::sendEvent(m_pSceneMenu, &event);
To copy to clipboard, switch view to plain text mode 

and first item of sub menu is also gets selected but after that sending further event is not working for the sub menu.

if the same time (after displaying sub menu) using arrow keys from keyboard change sub menu selections.

Please help if anyone has any idea.

Thanks.