内容表

上一话题

Qt Quick 变换类型

下一话题

Qt Quick 范例 - 图像元素

Qt Quick Examples - externaldraganddrop

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

../_images/qml-dnd2-example.png

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 ,打开 欢迎 模式,然后选择范例从 范例 . For more information, visit Building and Running an Example.

范例工程 @ code.qt.io