[Interest] Simulating Mouse Click Event?
mitchell.verter at gmail.com
Wed Aug 21 18:39:44 CEST 2013
How do i simulate a mouse click event from a device that is not the mouse?
I can set the mouse position with a motion sensor.
Then I would like to send a Left Button Press after one second hover in
aspot. However, none of the GUI elements are reacting to the event.
if (mouse is in same position for a second)
printf("mouse is hovering");
QMouseEvent * evt = new QMouseEvent (
I've tried a few permutations of this -- using qApp instead of
QCoreApplication , using sendEvent instead of postEvent, using a
QGraphicsSceneMouseEvent instead of a Mouse Event. But none of these seems
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Interest