mouseClick
mouseClick(objectOrName)
mouseClick(objectOrName, mouseButton)
mouseClick(objectOrName, mouseButton, modifierState)
mouseClick(objectOrName, x, y, mouseButton)
mouseClick(objectOrName, x, y, mouseButton, modifierState)
This function clicks the mouse on the specified objectOrName
widget.
If only the objectOrName
is specified, then the object is clicked in the middle by the MouseButton.LeftButton
. All the other usages require the mouseButton
to be specified, optionally preceded by by object-relative coordinates, x
and y
which say where the click takes place, and optionally followed by a modifierState
(which defaults to Modifier.NoModifier
if not specified).
See Windows Convenience Function Parameters for which values are valid for the mouseButton
argument and for the modifierState
argument.
© 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.