I am using Qt framework and I would like to generate mouse events outside my application window.
So far I managed to move the mouse pointer using:
QGuiApplication::overrideCursor()->setPos(x,y);
How can I also generate left mouse button click, middle button click, right button click and mouse wheel movement?