PDA

View Full Version : Ambiguous shortcut overload



QT8seven
20th December 2011, 06:01
I want to create a 'CTRL+W' shortcut for a child-widget of QMainWindow. Basically, I want to handle closing my window myself and not give this to QMainWindow to control. In addition, I want there to be a shortcut displayed in the menu. When attempting to create the shortcut, however, the following message appears:

QAction::eventFilter: Ambiguous shortcut overload: Ctrl+W

How can I find and remove the automated shortcut created by QMainWindow, or simply tell QMainWindow not to do it?

QT8seven
21st December 2011, 23:51
Is this not possible?