blob: 00fb82d59e668fd1f42ead5c92a4e50f8cf0ec93 (
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
|
import QtQuick 2.0
Item {
id: main
objectName: "main"
width: 400
height: 700
focus: true
Component.onCompleted: button1.focus = true
Item {
id: sub1
objectName: "sub1"
activeFocusOnTab: false
width: 100
height: 50
anchors.top: parent.top
Item {
id: button1
objectName: "button1"
width: 100
height: 50
activeFocusOnTab: true
Rectangle {
anchors.fill: parent
color: parent.activeFocus ? "red" : "black"
}
}
}
Row {
id: row_repeater
objectName: "row_repeater"
activeFocusOnTab: false
anchors.top: sub1.bottom
Repeater {
activeFocusOnTab: false
model: 3
Rectangle {
activeFocusOnTab: true
width: 100; height: 40
border.width: 1
color: activeFocus ? "red" : "yellow"
}
}
}
Item {
id: sub2
objectName: "sub2"
activeFocusOnTab: false
anchors.top: row_repeater.bottom
width: 100
height: 50
Item {
id: button2
objectName: "button2"
width: 100
height: 50
activeFocusOnTab: true
Rectangle {
anchors.fill: parent
color: parent.activeFocus ? "red" : "black"
}
}
}
Row {
id: row
objectName: "row"
activeFocusOnTab: false
anchors.top: sub2.bottom
Rectangle { activeFocusOnTab: true; color: activeFocus ? "red" : "yellow"; width: 50; height: 50 }
Rectangle { activeFocusOnTab: true; color: activeFocus ? "red" : "green"; width: 20; height: 50 }
Rectangle { activeFocusOnTab: true; color: activeFocus ? "red" : "blue"; width: 50; height: 20 }
}
Item {
id: sub3
objectName: "sub3"
activeFocusOnTab: false
anchors.top: row.bottom
width: 100
height: 50
Item {
id: button3
objectName: "button3"
width: 100
height: 50
activeFocusOnTab: true
Rectangle {
anchors.fill: parent
color: parent.activeFocus ? "red" : "black"
}
}
}
Flow {
id: flow
objectName: "flow"
activeFocusOnTab: false
anchors.top: sub3.bottom
width: parent.width
anchors.margins: 4
spacing: 10
Rectangle { activeFocusOnTab: true; color: activeFocus ? "red" : "yellow"; width: 50; height: 50 }
Rectangle { activeFocusOnTab: true; color: activeFocus ? "red" : "green"; width: 20; height: 50 }
Rectangle { activeFocusOnTab: true; color: activeFocus ? "red" : "blue"; width: 50; height: 20 }
}
Item {
id: sub4
objectName: "sub4"
activeFocusOnTab: false
anchors.top: flow.bottom
width: 100
height: 50
Item {
id: button4
objectName: "button4"
width: 100
height: 50
activeFocusOnTab: true
Rectangle {
anchors.fill: parent
color: parent.activeFocus ? "red" : "black"
}
}
}
FocusScope {
id: focusscope
objectName: "focusscope"
activeFocusOnTab: false
anchors.top: sub4.bottom
height: 40
Row {
id: row_focusscope
objectName: "row_focusscope"
activeFocusOnTab: false
anchors.fill: parent
Repeater {
activeFocusOnTab: false
model: 3
Rectangle {
activeFocusOnTab: true
width: 100; height: 40
border.width: 1
color: activeFocus ? "red" : "yellow"
}
}
}
}
Item {
id: sub5
objectName: "sub5"
activeFocusOnTab: false
anchors.top: focusscope.bottom
width: 100
height: 50
Item {
id: button5
objectName: "button5"
width: 100
height: 50
activeFocusOnTab: true
Rectangle {
anchors.fill: parent
color: parent.activeFocus ? "red" : "black"
}
}
}
FocusScope {
id: focusscope2
objectName: "focusscope2"
activeFocusOnTab: true
anchors.top: sub5.bottom
height: 40
Row {
id: row_focusscope2
objectName: "row_focusscope2"
activeFocusOnTab: false
anchors.fill: parent
Repeater {
activeFocusOnTab: false
model: 3
Rectangle {
activeFocusOnTab: true
focus: true
width: 100; height: 40
border.width: 1
color: activeFocus ? "red" : "yellow"
}
}
}
}
Item {
id: sub6
objectName: "sub6"
activeFocusOnTab: false
anchors.top: focusscope2.bottom
width: 100
height: 50
Item {
id: button6
objectName: "button6"
width: 100
height: 50
activeFocusOnTab: true
Rectangle {
anchors.fill: parent
color: parent.activeFocus ? "red" : "black"
}
}
}
FocusScope {
id: focusscope3
objectName: "focusscope3"
activeFocusOnTab: true
anchors.top: sub6.bottom
height: 40
Row {
id: row_focusscope3
objectName: "row_focusscope3"
activeFocusOnTab: false
anchors.fill: parent
Repeater {
activeFocusOnTab: false
model: 3
Rectangle {
activeFocusOnTab: true
width: 100; height: 40
border.width: 1
color: activeFocus ? "red" : "yellow"
}
}
}
}
Item {
id: sub7
objectName: "sub7"
activeFocusOnTab: false
anchors.top: focusscope3.bottom
width: 100
height: 50
Item {
id: button7
objectName: "button7"
width: 100
height: 50
activeFocusOnTab: true
Rectangle {
anchors.fill: parent
color: parent.activeFocus ? "red" : "black"
}
}
}
}
|