blob: ab4bf53dea1c1e587d454e95aa783858d1f03554 (
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
import QtQuick 1.1
import QtDesktop 0.2
Rectangle {
width: 800
height: 500
color: syspal.window
SystemPalette{id:syspal}
SplitterRow {
id: sr
anchors.fill: parent
Item {
id: r1
Splitter.minimumSize: 140
Splitter.expanding: false
width: 200
CheckBox {
id: be1
anchors.centerIn: parent
checked: parent.Splitter.expanding
text: "Set expanding"
onClicked: {
parent.Splitter.expanding = true
be2.checked = !parent.Splitter.expanding
}
}
}
Item {
id: r2
Splitter.minimumSize: 140
Splitter.expanding: true
width: 200
CheckBox {
id: be2
anchors.centerIn: parent
text: "Set expanding"
checked: true
onClicked: {
parent.Splitter.expanding = true
be1.checked = !parent.Splitter.expanding
}
}
}
Item {
id: r3
Splitter.expanding: false
Splitter.minimumSize: 140
width: 200
SplitterColumn {
id: sc
anchors.left: parent.left
anchors.right: parent.right
anchors.top: parent.top
anchors.bottom: parent.bottom
Item {
id: cr1
height:200
}
Item {
id: cr2
height: 200
}
}
}
}
}
|