-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSubWin.qml
More file actions
30 lines (29 loc) · 758 Bytes
/
SubWin.qml
File metadata and controls
30 lines (29 loc) · 758 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
import QtQuick 2.0
import QtQuick.Window 2.15
import QtQuick.Controls 2.15
Window {
width: curImageHeight
height: curImageHeight
id: textwin
// flags: Qt.FramelessWindowHint
color: "#fad390"
ScrollView {
anchors.fill: parent
TextArea {
id: textarea
anchors.fill: parent
color: "black"
font.family: "Times New Roman"
text: rgb_str
padding: 0
textFormat: TextArea.RichText
focus: true
selectByMouse:true
selectByKeyboard: true
onTextChanged: {
textwin.height = textarea.contentHeight
textwin.width = textarea.contentWidth
}
}
}
}