title: Qt - Remove shortcut -- Ambiguous shortcut overload
body: <p><strong>Extraneous Information:</strong>
  I am attempting to build an application using Qt. This application features a QMdiArea and a child-window. My child-window will have a menu which can be integrated into the QMdiArea or segregated and attached to the child itself. Though, this is a bit more detail than needed...</p>
  
  <p><strong>Problem:</strong>
  I would like my child-widget to have a menu with a shortcut, "CTRL+W." But, because I am using a QMdiArea, the shortcut is already used causing:</p>
  
  <blockquote>
    <p>QAction::eventFilter: Ambiguous shortcut overload: Ctrl+W</p>
  </blockquote>
  
  <p>How can I get rid of this shortcut and claim it within my child widget instead?</p>
  
  <p><strong>Update:</strong>
  Here is what I've tried with no luck:</p>
  
  <pre><code>class MDI : public QMdiArea
  {
      Q_OBJECT
      private:
      bool event(QEvent *tEvent)
      {
          if (tEvent-&gt;type() == QEvent::KeyPress)
          {
              QKeyEvent* ke = static_cast&lt;QKeyEvent*&gt;(tEvent);
              if (ke-&gt;key()== Qt::Key_W &amp;&amp; ke-&gt;modifiers() &amp; Qt::ControlModifier)
              emit KeyCW();
              return true;
          }
          return QMdiArea::event(tEvent);
      }
  public:
  signals:
      void KeyCW();
  };
  </code></pre>
  
  <p>This works if I do something as simple as change <code>Qt::Key_W</code> to  <code>Qt::Key_L.</code> The key-combo is received and event is thrown. With W, it just never happens. I've also tried moving <code>event</code> to QMainWindow as well as an eventFilter in the subwindow to QMdiArea. It seems that it is a little overly complicated to do something as simple as remove default key-handlers from within QMdiArea.</p>