touchAndDrag
touchAndDrag(startRectangle, endRectangle)
touchAndDrag(startRectangle, endRectangle, modifierState)
touchAndDrag(startRectangle, dx, dy)
touchAndDrag(startRectangle, dx, dy, modifierState)
touchAndDrag(startPoint, endPoint)
touchAndDrag(startPoint, endPoint, modifierState)
touchAndDrag(startPoint, dx, dy)
touchAndDrag(startPoint, dx, dy, modifierState)
This function performs a touch-based drag operation. It initiates a touch press at the specified startPoint
or at the center of startRectangle
. The touch point is subsequently dragged to either endPoint
, the center of endRectangle
or by dx
pixels horizontally and by dy
pixels vertically, relative to the starting position. Finally, the touch point is released.
If specified, the keyboard modifiers provided in the modifierState
are applied during the drag operation.
© 2025 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.