[Interest] Simulating Mouse Click Event?
alexander golks
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.
alex
--
/*
* You will inherit millions of dollars.
*/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130822/5bfd487e/attachment.sig>
More information about the Interest
mailing list