touchAndDrag (Qt)
touchAndDrag(objectOrName, x, y, dx, dy)
touchAndDrag(objectOrName, x, y, dx, dy, modifiers)
touchAndDrag(objectOrName, x, y, dx, dy, modifiers, delayAfterPress)
This function performs a touch-based drag operation. It initiates a touch drag of the specified objectOrName
widget starting at position x
and y
(in the objectOrName
widget's coordinates). The objectOrName
widget is dragged by dx
pixels horizontally and by dy
pixels vertically.
If specified, the keyboard modifiers provided in modifiers
are set while performing the drag.
If specified, the number of milliseconds provided in delayAfterPress
is waited before the drag starts.
Touch-based dragging is supported on objects of type QQuickItem and QWindow.
© 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.