blob: ea71d8569e57f1fbcfbebdf94b6e11f7f4a1d9a3 (
plain)
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
|
Item {
id: Page
height: MyText.height + 20
property var text
MouseRegion {
anchors.fill: parent
drag.target: Page
drag.axis: "xy"
drag.xmin: 0
drag.xmax: 1000
drag.ymin: 0
drag.ymax: 1000
}
Rect {
radius: 10
anchors.fill: parent
color: "lightsteelblue"
}
Item {
x: 10
y: 10
width: parent.width - 20
height: parent.height - 20
Text {
id: MyText
text: Page.text
width: parent.width
clip: true
wrap: true
}
}
}
|