Qt Quick Examples - externaldraganddrop

This is an example of drag-and-drop among QML applications.

externaldraganddrop demonstrates how to perform drag and drop with MouseArea and DropArea .

The example allows you to drag the text to other boxes, out of boxes into other applications, and from other applications into the boxes. Use the option or CTRL keys to copy rather than move text when dragging between boxes.

运行范例

要运行范例从 Qt Creator ,打开 Welcome 模式,然后选择范例从 Examples 。更多信息,拜访 构建和运行范例 .

范例工程 @ code.qt.io