startDrag and dropOn

startDrag(src_objectOrName, sx, sy)

This function performs a start drag operation. It initiates a drag on the source_objectOrName widget starting at position sx and sy (in the source_objectOrName widget's coordinates). This can be useful if the drop target object becomes available only after the drag starts.

dropOn(target_objectOrName, tx, ty)

This function performs a drop operation. It drops the dragged object on the target_objectOrName widget at position tx and ty (in the target_objectOrName widget's coordinates). This function should only be called after startDrag has been called, i.e., a drag operation is in progress.

© 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