[Interest] Simulating Mouse Click Event?
alex at golks.de
Thu Aug 22 09:34:27 CEST 2013
Am Wed, 21 Aug 2013 12:39:44 -0400
schrieb Mitchell Verter <mitchell.verter at gmail.com>:
> QCoreApplication::postEvent(this, evt);
i am doing nearly the same, but i use recorded events and replay them. then i
use sendEvent and not postEvent, but this shouldn't be your problem.
but: i think you must locate the correct receiver for your event. i am looping
over QApplication::allWidgets() and searching for a widget with correct object
name and correct class name.
this values i have saved during recording, so i can use them on replay. effect:
i can even move the window around and resize, the mouse press is delivered to
my pushbutton nevertheless.
* You will inherit millions of dollars.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 198 bytes
Desc: not available
More information about the Interest