mouseMove
mouseMove(x, y)
mouseMove(objectOrName)
mouseMove(objectOrName, x, y)
This function moves the mouse to position x
and y
relative to the top-left of the objectOrName
widget if one is specified, or relative to the current screen otherwise.
If no coordinates are specified, the mouse is moved to the middle of the objectOrName
widget.
This function is useful if you want to trigger events that need the mouse to be at a particular position. For example, tooltips normally only appear when the mouse is over a certain area.
© 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.