longPressAndDrag
longPressAndDrag(objectOrName, dx, dy)
longPressAndDrag(objectOrName, x, y, dx, dy)
This function performs a touch drag operation, pressing 2s first then drag, of the specified objectOrName
widget. The objectOrName
widget is dragged by dx
pixels horizontally and by dy
pixels vertically. The x
and y
coordinates are optional. If they are not specified the initial press is made in the center of the widget. On the other hand, if the additional parameters are given, the initial press is made at position x
and y
(in the objectOrName
widget's coordinates).
© 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.