Generate mouse events using Qt framework
问题 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? 回答1: A few years ago i wrote a drivers for GUI testing (for mouse and keyboard). Drivers are developed for Windows, Linux and MacOS X. You can look at here. There is a OS depended