-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathLoadImageWindow.qml
More file actions
54 lines (50 loc) · 1.36 KB
/
LoadImageWindow.qml
File metadata and controls
54 lines (50 loc) · 1.36 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
51
52
53
54
import QtQuick 2.15
import QtQuick.Controls 2.15
Popup {
id: root
x: Math.round((parent.width - width) / 2)
y: Math.round((parent.height - height) / 2)
width: 400
height: 350
// onWidthChanged: Math.max(200, width)
// onHeightChanged: Math.max(300, height)
modal: true
focus: true
//select img
Label {
id: lb_img
width: 28
height: 18
text: qsTr("Изображение")
anchors.top: tf_prjPath.bottom
anchors.topMargin: 20
anchors.left: parent.left
anchors.leftMargin: xst
}
TextField {
id: tf_imgPath
x: xst
height: 40
text: bt_selectImg.fileName
anchors.right: bt_selectImg.left
anchors.rightMargin: 5
anchors.left: parent.left
anchors.leftMargin: xst
anchors.top: lb_img.bottom
anchors.topMargin: 5
placeholderText: "Путь к изображению"
}
LoadButton {
id: bt_selectImg
width: 40
height: 40
text: qsTr("...")
anchors.right: parent.right
anchors.rightMargin: 15
anchors.top: lb_img.bottom
anchors.topMargin: 5
// selectFolder: false
filter: ["Image files (*.jpg *.png *.bmp *.tif)"]
// onAccepted: tf_imgPath.text = bt_selectImg.fileName
}
}