diff options
| author | Tarja Sundqvist <tarja.sundqvist@qt.io> | 2025-01-29 15:28:42 +0200 |
|---|---|---|
| committer | Tarja Sundqvist <tarja.sundqvist@qt.io> | 2025-01-29 15:28:42 +0200 |
| commit | a7c766a9863605eb81e8f0cdb4d2b93e087b5bde (patch) | |
| tree | 02d4a35b6bcfd4322a01b013e887a029fe760fe4 /src/quick/doc/snippets/qml | |
| parent | d8a396b76168b66b8cd938f61d8d958ebdb14871 (diff) | |
| parent | 5880b113a6dcd08cb84b542f86b9f6b90b626514 (diff) | |
Merge tag 'v6.2.12-lts' into tqtc/lts-6.2-opensourcev6.2.12-lts-lgpl
Qt 6.2.12-lts release
Conflicts solved:
dependencies.yaml
Change-Id: Ia7410afbc9d94f061fb13da84b6361428725b530
Diffstat (limited to 'src/quick/doc/snippets/qml')
| -rw-r--r-- | src/quick/doc/snippets/qml/externaldrag.qml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/quick/doc/snippets/qml/externaldrag.qml b/src/quick/doc/snippets/qml/externaldrag.qml index 5a88be2d4b..ba7feecc1b 100644 --- a/src/quick/doc/snippets/qml/externaldrag.qml +++ b/src/quick/doc/snippets/qml/externaldrag.qml @@ -59,7 +59,6 @@ Item { color: "green" radius: 5 - Drag.active: dragHandler.active Drag.dragType: Drag.Automatic Drag.supportedActions: Qt.CopyAction Drag.mimeData: { @@ -77,8 +76,11 @@ Item { onActiveChanged: if (active) { parent.grabToImage(function(result) { - parent.Drag.imageSource = result.url; + parent.Drag.imageSource = result.url + parent.Drag.active = true }) + } else { + parent.Drag.active = false } } } |
