-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRectangle1.qml
More file actions
42 lines (34 loc) · 944 Bytes
/
Rectangle1.qml
File metadata and controls
42 lines (34 loc) · 944 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import QtQuick 2.9
Rectangle {
width: 80
height: 80
color: "transparent"
property string texto: "test"
property string url: "file:///home/shenoisz/Documents/estudos/QT-creator/DesktopManager/icons/folder.png"
Drag.active: mouseArea.drag.active
Drag.hotSpot.x: 0
Drag.hotSpot.y: 0
Drag.mimeData: { "text/uri-list": "file:///home/shenoisz/Desktop/test.txt" }
Drag.supportedActions: Qt.CopyAction
Drag.dragType: Drag.Automatic
Drag.onDragStarted: { }
Drag.onDragFinished: {
console.log("Time to copy")
}
Image {
x: 10
y: 0
width: 62
height: 56
source: "file:///home/shenoisz/Documents/estudos/QT-creator/DesktopManager/icons/folder.png"
}
Text {
id: item_texto
x: 5
y: 62
text: texto
font.pixelSize: 12
color: "#ffffff"
horizontalAlignment: Text.AlignHCenter
}
}