Rajesh.Rathod
14th July 2015, 07:52
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
QKeyEvent event(QEvent::KeyPress, Qt::Key_Return, Qt::NoModifier);
QApplication::sendEvent(m_pSceneMenu, &event);
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.
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
QKeyEvent event(QEvent::KeyPress, Qt::Key_Return, Qt::NoModifier);
QApplication::sendEvent(m_pSceneMenu, &event);
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.