Skip to content

Commit

Permalink
fix: drag item image pixelated
Browse files Browse the repository at this point in the history
image size == item size
  • Loading branch information
kegechen committed Aug 9, 2024
1 parent cf7150b commit 6ef6ba2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion qt6/src/qml/DragItemsImage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ Item {
if (!item)
return

// item.dragActive = true
img.width = item.width
img.height = item.height

aboutToGrabToImage(item)
item.grabToImage(function(result) {
img.source = result.url
Expand Down

0 comments on commit 6ef6ba2

Please sign in to comment.