mouseWheel

mouseWheel(n)

mouseWheel(n, modifierState)

This function performs a mouse wheel operation, emulating rotation of the vertical wheel of a mouse. The operation happens over the current mouse location. To move the mouse to a desired location, please use the function mouseMove(x, y).

The amount of wheel rotation is specified by the argument n. One n corresponds to one wheel notch which is about 15 degrees or 120 delta units of a mouse wheel event. The positive value of n rotates the wheel in an upward direction (away from the user) and the negative in a downward direction (toward the user).

The keyboard state during a mouse wheel can be specified by using the argument modifierState. See Windows Convenience Function Parameters for which values are valid for this 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.

Search Results