title: keybd_event on Qt won't work
body: <p>I'm trying to create some sort of a "virtual controler" on Qt, by sending "keyboard presses" from my apliccation to outside of it (to the system). I tried to use keybd_event, but I'm having problems. Even this simple code won't work:</p>
  
  <pre><code>#include "mainwindow.h"
  #include "ui_mainwindow.h"
  #include &lt;windows.h&gt;
  
  MainWindow::MainWindow(QWidget *parent) :
      QMainWindow(parent),
      ui(new Ui::MainWindow)
  {
      ui-&gt;setupUi(this);
  }
  
  MainWindow::~MainWindow()
  {
      delete ui;
  }
  
  void MainWindow::on_pushButton_clicked()
  {
      keybd_event(Qt::Key_Right, 0, 0, 0);
      keybd_event(Qt::Key_Right, 0, KEYEVENTF_KEYUP, 0);
  }
  </code></pre>
  
  <p>I get this error message:</p>
  
  <p>mainwindow.obj:-1: error: LNK2019: unresolved external symbol _<em>imp</em>_keybd_event@16 referenced in function "private: void __thiscall MainWindow::on_pushButton_clicked(void)" (?on_pushButton_clicked@MainWindow@@AAEXXZ)</p>
  
  <p>Can please someone explain why is wrong with the code?</p>