[quote]*void QCoreApplication::postEvent ( QObject *receiver, QEvent event)
Adds the event event, with the object receiver as the receiver of the event, to an event queue and returns immediately.[/quote]

And the QKeyEvent object you will probably have to create+initialize yourself...