mousePress
mousePress()
mousePress(mouseButton)
mousePress(mouseButton, modifierState)
mousePress(x, y, mouseButton)
mousePress(x, y, mouseButton, modifierState)
mousePress(objectOrName)
mousePress(objectOrName, mouseButton)
mousePress(objectOrName, mouseButton, modifierState)
mousePress(objectOrName, x, y, mouseButton)
mousePress(objectOrName, x, y, mouseButton, modifierState)
This function performs a mouse press. All the parameters are optional excepting that either both or neither of the coordinates must be present.
If x
and y
coordinates are given, the press takes place at those coordinates, either relative to the objectOrName
object if one is specified, or relative to the current screen otherwise. If no coordinates are given the press takes place on the middle of the objectOrName
object if one is specified, or wherever the mouse happens to be otherwise.
By default MouseButton.LeftButton
is used, but this can be changed by specifying the optional mouseButton
argument. Similarly a default modifier state of no modifiers is used, but this can be changed by specifying the modifierState
argument. 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.