mouseRelease
mouseRelease()
mouseRelease(mouseButton)
mouseRelease(mouseButton, modifierState)
mouseRelease(x, y, mouseButton)
mouseRelease(x, y, mouseButton, modifierState)
mouseRelease(objectOrName)
mouseRelease(objectOrName, mouseButton)
mouseRelease(objectOrName, mouseButton, modifierState)
mouseRelease(objectOrName, x, y, mouseButton)
mouseRelease(objectOrName, x, y, mouseButton, modifierState)
This function performs a mouse release. 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 release 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 release 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 Squish API Function Parameters for which values are valid for the mouseButton
argument and for the modifierState
argument.
Note: When executing tests on Windows systems, MouseButton.PrimaryButton
is used by default instead of MouseButton.LeftButton
. This means that Squish will perform a click with the right mouse button in case Windows was configured to have swapped mouse buttons.
There is a toolkit-specific version of this function that may have different arguments: mouseRelease() (Windows).
© 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.