sendEvent
sendEvent(eventName, objectOrName, x, y, modifierState, button)
This function sends an event of type eventName
to the objectOrName
element. The eventName
must be one of:
"mouseup"
"mousedown"
"mouseover"
"mouseout"
"mousemove"
"click"
"pointerover"
"pointerenter"
"pointerdown"
"pointermove"
"pointerup"
"pointercancel"
"pointerout"
"pointerleave"
The x
and y
parameters are the coordinates relative to objectOrName
, where the event should occur. The modifierState
is currently ignored, but you should always pass a value of 0 for it. The button
must be one of 1
(left button), 2
(right button), or 4
(middle button).
© 2024 The Qt Company Ltd.
Documentation contributions included herein are the copyrights of
their respective owners.
The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.
Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property
of their respective owners.