Hello, I am developing a small application that lets your mobile phone act as a touchpad. I am able to move the desktop cursor with QCursor::setPos(), but I can't find a way to simulate mouse button presses so that any application can receive them.

All of the Qt functions I have found only generate presses for the Qt application itself, and it seems they can't be used to create a general-purpose cursor. Say, something that could click on a desktop icon or a button in Open Office.

Does anyone know how to solve this problem?