blob: df4881cacfed52a5ed88a7aca99a39efbf9cd02f (
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
33
34
|
import Qt 4.6
Item {
id: Page
height: MyText.height + 20
property var text
MouseRegion {
anchors.fill: parent
drag.target: Page
drag.axis: "XandYAxis"
drag.minimumX: 0
drag.maximumX: 1000
drag.minimumY: 0
drag.maximumY: 1000
}
Rectangle {
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
}
}
}
|