How to send event to system?
-
I know that I can send a event to a receiver via QApplication::sendEvent(QObject *receiver, QEvent *event).But how to let the receiver to be system/OS?
-
Hi,
Can you explain what exactly you want to send to your OS ?
-
[quote author="SGaist" date="1395656317"]Hi,
Can you explain what exactly you want to send to your OS ?[/quote]
MouseEvent or keyEvent.I am implemting a remote control system,as a part I need to simulate mouseEvent and keyEvent which are from remote pc on the native system.Thanks for your reply.
-
AFAIK, it's not something Qt can do out of the box
-
[quote author="SGaist" date="1395743984"]AFAIK, it's not something Qt can do out of the box[/quote]
Thanks.Do you have any ideas to achieve my goal?I know I can implemt it easily with Windows API,but I want to know how to do the same thing with Qt. -
Like I said. I am not aware of anything available in Qt for that. But you can use the Windows API alongside Qt without any problem
-
[quote author="SGaist" date="1395781773"]Like I said. I am not aware of anything available in Qt for that. But you can use the Windows API alongside Qt without any problem[/quote]
It seems I have no alternative.Thank you.