title: C++ QT OSX Qt::META+Qt::Key_Tab shortcut bind
body: <p>I’m trying to bind <code>Qt::META</code> + <code>Qt::Key_Tab</code> shortcut in <code>QTabWidget</code> to switch tabs (like it works in chrome or many other applications). 
  I have tried every single solution found in google, but this shortcut combination is not working.</p>
  
  <p>I have tried:</p>
  
  <ul>
  <li>Combinations like <code>Qt::Key_Control</code> + <code>Qt::Key_Tab</code>, <code>Qt::Key_Meta</code> + <code>Qt::Key_Tab</code>, <code>QKeySequence</code>(<code>Qt::Key_Meta</code>, <code>Qt::Key_Tab</code>), <code>QKeySequence</code>(<code>Qt::META</code>, <code>Qt::Key_Tab</code>) etc.</li>
  <li><code>QShortcut</code></li>
  <li><code>QAction</code></li>
  <li>capturing keys using virtual <code>QWidget::event</code></li>
  <li>capturing keys using virtual <code>QWidget::eventFilter</code> with <code>installEventFilter</code></li>
  <li>all relative like <code>keyPressed</code> and etc..</li>
  </ul>
  
  <p><code>QWidget::event</code>/<code>QWidget::eventFilter</code> catches <kbd>Shift</kbd>+<kbd>Tab</kbd>, <kbd>Alt</kbd>+<kbd>Tab</kbd>, but not <kbd>Ctrl</kbd>(META)+<kbd>Tab</kbd>. When I press <kbd>Ctrl</kbd> I see my <code>qDebug</code> output, when I press Ctrl + Tab nothing happens.</p>
  
  <p>Can somebody explain me what is wrong and so special with this particular key combination in QT on OSX?</p>
  
  <p>Doesn't matter what widget, I have created clean GUI project with no other widgets in it - still the same.</p>
  
  <p>Some information:</p>
  
  <ul>
  <li>OSX Mountain Lion 10.8.5</li>
  <li>QT 5.2</li>
  </ul>
  
  <p><strong>BTW</strong>, In Qt Creator I’m not able to set <kbd>Ctrl</kbd>+<kbd>Tab</kbd> shortcut either, thats really ridiculous.</p>
  
  <p><strong>Note:</strong> It works great on <strong>Windows</strong>, it doesn't work on <strong>OSX</strong>!</p>
  
  <p>I appreciate any help.</p>
  
  <p>Simple code with QAction:</p>
  
  <pre><code>MainWindow::MainWindow(QWidget *parent) :
      QMainWindow(parent),
      ui(new Ui::MainWindow)
  {
      ui-&gt;setupUi(this);
  
  
      QAction *pAction = new QAction(this);
      QKeySequence keySequence = Qt::META + Qt::Key_Tab; // Not working
      // or
      QKeySequence keySequence = Qt::ALT + Qt::Key_Tab; // Works Alt+Tab
      // or
      QKeySequence keySequence = QKeySequence(Qt::Key_Meta, Qt::Key_Tab); // Not working
      // or
      QKeySequence keySequence = QKeySequence(Qt::META, Qt::Key_Tab); // Not working
      pAction-&gt;setShortcut(keySequence);
  
      connect(pAction, SIGNAL(triggered()), this, SLOT(shortcut_NextTab()));
  
      addAction(pAction);
  
  }
  </code></pre>
  
  <p>And slot function:</p>
  
  <pre><code>void MainWindow::shortcut_NextTab()
  {
      qDebug() &lt;&lt; "LOL";
  }
  </code></pre>
  
  <p>Expecting to see <code>LOL</code> in Application output, when pressing <kbd>Ctrl</kbd>+<kbd>Tab</kbd>.</p>