PDA

View Full Version : shortcuts for all windows



stevocz
28th May 2014, 08:24
Hi.

i have shortcuts in QMainWindow

all works OK. but only when QMainWindow is active. when i have selected other Widget, this shortcuts not working. How edit code for using this shortcuts for all widgets in this application?

EDIT: this work

action->setShortcutContext(Qt::ApplicationShortcut);