-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathImagePanel.qml
More file actions
50 lines (46 loc) · 1.14 KB
/
Copy pathImagePanel.qml
File metadata and controls
50 lines (46 loc) · 1.14 KB
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
43
44
45
46
47
48
49
50
import QtQuick 2.15
import My 1.0
BasePanel {
id: root
property alias image: mainImage
ImageItem {
id: mainImage
objectName: "mainImage"
// source: "filex :///C:/Users/Sam/Pictures/hole-test.png"
visible: true
anchors.fill: parent
Rectangle {
id: selectionRect
visible: false
x: 0
y: 0
z: 99
width: 0
height: 0
rotation: 0
color: "#5F227CEB"
border.width: 1
border.color: "#103A6E"
transformOrigin: Item.TopLeft
}
ImageItem {
id: mask
objectName: "maskImage"
anchors.fill: parent
}
}
// MouseArea {
// id: selectionMouseArea
// property int initialXPos
// property int initialYPos
// property bool justStarted
// anchors.fill: parent
// z: 2 // make sure we're above other elements
// onPressed: {
// if (mouse.button == Qt.LeftButton) {
// console.log("Mouse area shift-clicked !")
// backend.click(selectionRect.x, selectionRect.y)
// }
// }
// }
}