I'm trying to generate mouse click. I need it to my app, it must simulate mouse click. 

```
QMouseEvent *klik = new QMouseEvent(QEvent::MouseButtonPress, QCursor::pos(), Qt::LeftButton, Qt::LeftButton, Qt::NoModifier);
QCoreApplication::postEvent(this, klik);
QMouseEvent* klik2 = new QMouseEvent(QEvent::MouseButtonRelease, QCursor::pos(), Qt::LeftButton, Qt::LeftButton, Qt::NoModifier);
QCoreApplication::postEvent(this, klik2);

```

But it not working. It must work on linux, I found many examples for windows but anything for linux not working :(

sorry for my bad english

[EDIT]

I have little problem with QTest. Here are screenshot with compilator [errors](https://dl.dropboxusercontent.com/u/61452937/qt.png)