Hi,
I have a widget stack and one of the widgets inside contains a menu with QActions that have keyboard shortcuts to activate them.
When the widget is not visible in the stack, the shortcuts do not work, but I would like them to work.
I have tried redirecting the QEvent::Accel events that get to the main view class to the stacked widget and/or to the menu, but none of the options work.

Qt Code:
  1. bool main_view::event(QEvent* e)
  2. {
  3.  
  4. bool rv;
  5.  
  6. switch(e->type())
  7. {
  8. default:
  9. rv = QMainWindow::event(e);
  10. break;
  11. case QEvent::Accel:
  12. case QEvent::AccelOverride:
  13. {
  14. QApplication::sendEvent( stacked_widget, e );
  15. }
  16. }
  17. ...
To copy to clipboard, switch view to plain text mode 

Any ideas of how I could achieve it?