0
|
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
|
2 |
<ui version="4.0">
|
|
3 |
<class>Form</class>
|
|
4 |
<widget class="QWidget" name="Form">
|
|
5 |
<property name="geometry">
|
|
6 |
<rect>
|
|
7 |
<x>0</x>
|
|
8 |
<y>0</y>
|
|
9 |
<width>884</width>
|
|
10 |
<height>327</height>
|
|
11 |
</rect>
|
|
12 |
</property>
|
|
13 |
<property name="windowTitle">
|
|
14 |
<string>Form</string>
|
|
15 |
</property>
|
|
16 |
<property name="styleSheet">
|
|
17 |
<string notr="true"> QLabel
|
|
18 |
{
|
|
19 |
border: 2px dashed rgb(0, 85, 255)
|
|
20 |
}
|
|
21 |
|
|
22 |
QGroupBox .QFrame {
|
|
23 |
margin: 20px 10px 5px 0px;
|
|
24 |
padding: 0px 10px 15px 20px;
|
|
25 |
}
|
|
26 |
|
|
27 |
QGroupBox {
|
|
28 |
border: 5px solid white;
|
|
29 |
}
|
|
30 |
|
|
31 |
#line1 { background-color: yellow; }
|
|
32 |
#line2 { background-color: pink; }
|
|
33 |
#line1, #line2 {
|
|
34 |
border: 1px solid rgb(170, 85, 255);
|
|
35 |
}
|
|
36 |
|
|
37 |
|
|
38 |
QFrame::no-frame {
|
|
39 |
background: orange;
|
|
40 |
border-color: #000;
|
|
41 |
}
|
|
42 |
|
|
43 |
</string>
|
|
44 |
</property>
|
|
45 |
<layout class="QGridLayout" name="gridLayout">
|
|
46 |
<item row="1" column="0">
|
|
47 |
<widget class="QGroupBox" name="groupBox">
|
|
48 |
<property name="title">
|
|
49 |
<string>GroupBox</string>
|
|
50 |
</property>
|
|
51 |
<property name="flat">
|
|
52 |
<bool>false</bool>
|
|
53 |
</property>
|
|
54 |
<layout class="QHBoxLayout" name="horizontalLayout">
|
|
55 |
<item>
|
|
56 |
<layout class="QVBoxLayout" name="verticalLayout_7">
|
|
57 |
<item>
|
|
58 |
<widget class="QFrame" name="frame">
|
|
59 |
<property name="frameShape">
|
|
60 |
<enum>QFrame::StyledPanel</enum>
|
|
61 |
</property>
|
|
62 |
<property name="frameShadow">
|
|
63 |
<enum>QFrame::Raised</enum>
|
|
64 |
</property>
|
|
65 |
<layout class="QVBoxLayout" name="verticalLayout_3">
|
|
66 |
<item>
|
|
67 |
<widget class="QLabel" name="label_2">
|
|
68 |
<property name="text">
|
|
69 |
<string>Styled</string>
|
|
70 |
</property>
|
|
71 |
</widget>
|
|
72 |
</item>
|
|
73 |
</layout>
|
|
74 |
</widget>
|
|
75 |
</item>
|
|
76 |
<item>
|
|
77 |
<spacer name="verticalSpacer">
|
|
78 |
<property name="orientation">
|
|
79 |
<enum>Qt::Vertical</enum>
|
|
80 |
</property>
|
|
81 |
<property name="sizeHint" stdset="0">
|
|
82 |
<size>
|
|
83 |
<width>20</width>
|
|
84 |
<height>40</height>
|
|
85 |
</size>
|
|
86 |
</property>
|
|
87 |
</spacer>
|
|
88 |
</item>
|
|
89 |
</layout>
|
|
90 |
</item>
|
|
91 |
<item>
|
|
92 |
<layout class="QVBoxLayout" name="verticalLayout_8">
|
|
93 |
<item>
|
|
94 |
<widget class="QFrame" name="frame_2">
|
|
95 |
<property name="frameShape">
|
|
96 |
<enum>QFrame::StyledPanel</enum>
|
|
97 |
</property>
|
|
98 |
<property name="frameShadow">
|
|
99 |
<enum>QFrame::Raised</enum>
|
|
100 |
</property>
|
|
101 |
<layout class="QVBoxLayout" name="verticalLayout_2">
|
|
102 |
<item>
|
|
103 |
<widget class="QLabel" name="label_3">
|
|
104 |
<property name="text">
|
|
105 |
<string>Box</string>
|
|
106 |
</property>
|
|
107 |
</widget>
|
|
108 |
</item>
|
|
109 |
</layout>
|
|
110 |
</widget>
|
|
111 |
</item>
|
|
112 |
<item>
|
|
113 |
<spacer name="verticalSpacer_2">
|
|
114 |
<property name="orientation">
|
|
115 |
<enum>Qt::Vertical</enum>
|
|
116 |
</property>
|
|
117 |
<property name="sizeHint" stdset="0">
|
|
118 |
<size>
|
|
119 |
<width>20</width>
|
|
120 |
<height>40</height>
|
|
121 |
</size>
|
|
122 |
</property>
|
|
123 |
</spacer>
|
|
124 |
</item>
|
|
125 |
</layout>
|
|
126 |
</item>
|
|
127 |
<item>
|
|
128 |
<layout class="QVBoxLayout" name="verticalLayout_9">
|
|
129 |
<item>
|
|
130 |
<widget class="QFrame" name="frame_6">
|
|
131 |
<property name="frameShape">
|
|
132 |
<enum>QFrame::NoFrame</enum>
|
|
133 |
</property>
|
|
134 |
<property name="frameShadow">
|
|
135 |
<enum>QFrame::Raised</enum>
|
|
136 |
</property>
|
|
137 |
<layout class="QVBoxLayout" name="verticalLayout_6">
|
|
138 |
<item>
|
|
139 |
<widget class="QLabel" name="label_7">
|
|
140 |
<property name="text">
|
|
141 |
<string>None</string>
|
|
142 |
</property>
|
|
143 |
</widget>
|
|
144 |
</item>
|
|
145 |
</layout>
|
|
146 |
</widget>
|
|
147 |
</item>
|
|
148 |
<item>
|
|
149 |
<spacer name="verticalSpacer_3">
|
|
150 |
<property name="orientation">
|
|
151 |
<enum>Qt::Vertical</enum>
|
|
152 |
</property>
|
|
153 |
<property name="sizeHint" stdset="0">
|
|
154 |
<size>
|
|
155 |
<width>20</width>
|
|
156 |
<height>40</height>
|
|
157 |
</size>
|
|
158 |
</property>
|
|
159 |
</spacer>
|
|
160 |
</item>
|
|
161 |
</layout>
|
|
162 |
</item>
|
|
163 |
<item>
|
|
164 |
<layout class="QVBoxLayout" name="verticalLayout_10">
|
|
165 |
<item>
|
|
166 |
<widget class="QFrame" name="frame_4">
|
|
167 |
<property name="frameShape">
|
|
168 |
<enum>QFrame::StyledPanel</enum>
|
|
169 |
</property>
|
|
170 |
<layout class="QVBoxLayout" name="verticalLayout">
|
|
171 |
<item>
|
|
172 |
<widget class="QLabel" name="label_5">
|
|
173 |
<property name="text">
|
|
174 |
<string>Box Plain</string>
|
|
175 |
</property>
|
|
176 |
</widget>
|
|
177 |
</item>
|
|
178 |
</layout>
|
|
179 |
</widget>
|
|
180 |
</item>
|
|
181 |
<item>
|
|
182 |
<spacer name="verticalSpacer_4">
|
|
183 |
<property name="orientation">
|
|
184 |
<enum>Qt::Vertical</enum>
|
|
185 |
</property>
|
|
186 |
<property name="sizeHint" stdset="0">
|
|
187 |
<size>
|
|
188 |
<width>20</width>
|
|
189 |
<height>40</height>
|
|
190 |
</size>
|
|
191 |
</property>
|
|
192 |
</spacer>
|
|
193 |
</item>
|
|
194 |
</layout>
|
|
195 |
</item>
|
|
196 |
<item>
|
|
197 |
<layout class="QVBoxLayout" name="verticalLayout_11">
|
|
198 |
<item>
|
|
199 |
<widget class="QFrame" name="frame_3">
|
|
200 |
<property name="frameShape">
|
|
201 |
<enum>QFrame::StyledPanel</enum>
|
|
202 |
</property>
|
|
203 |
<property name="frameShadow">
|
|
204 |
<enum>QFrame::Raised</enum>
|
|
205 |
</property>
|
|
206 |
<layout class="QVBoxLayout" name="verticalLayout_4">
|
|
207 |
<item>
|
|
208 |
<widget class="QLabel" name="label_4">
|
|
209 |
<property name="text">
|
|
210 |
<string>Panel</string>
|
|
211 |
</property>
|
|
212 |
</widget>
|
|
213 |
</item>
|
|
214 |
</layout>
|
|
215 |
</widget>
|
|
216 |
</item>
|
|
217 |
<item>
|
|
218 |
<spacer name="verticalSpacer_5">
|
|
219 |
<property name="orientation">
|
|
220 |
<enum>Qt::Vertical</enum>
|
|
221 |
</property>
|
|
222 |
<property name="sizeHint" stdset="0">
|
|
223 |
<size>
|
|
224 |
<width>20</width>
|
|
225 |
<height>40</height>
|
|
226 |
</size>
|
|
227 |
</property>
|
|
228 |
</spacer>
|
|
229 |
</item>
|
|
230 |
</layout>
|
|
231 |
</item>
|
|
232 |
<item>
|
|
233 |
<layout class="QVBoxLayout" name="verticalLayout_12">
|
|
234 |
<item>
|
|
235 |
<widget class="QFrame" name="frame_5">
|
|
236 |
<property name="frameShape">
|
|
237 |
<enum>QFrame::StyledPanel</enum>
|
|
238 |
</property>
|
|
239 |
<property name="frameShadow">
|
|
240 |
<enum>QFrame::Sunken</enum>
|
|
241 |
</property>
|
|
242 |
<layout class="QVBoxLayout" name="verticalLayout_5">
|
|
243 |
<item>
|
|
244 |
<widget class="QLabel" name="label_6">
|
|
245 |
<property name="text">
|
|
246 |
<string>WinPanel</string>
|
|
247 |
</property>
|
|
248 |
</widget>
|
|
249 |
</item>
|
|
250 |
</layout>
|
|
251 |
</widget>
|
|
252 |
</item>
|
|
253 |
<item>
|
|
254 |
<spacer name="verticalSpacer_6">
|
|
255 |
<property name="orientation">
|
|
256 |
<enum>Qt::Vertical</enum>
|
|
257 |
</property>
|
|
258 |
<property name="sizeHint" stdset="0">
|
|
259 |
<size>
|
|
260 |
<width>20</width>
|
|
261 |
<height>40</height>
|
|
262 |
</size>
|
|
263 |
</property>
|
|
264 |
</spacer>
|
|
265 |
</item>
|
|
266 |
</layout>
|
|
267 |
</item>
|
|
268 |
</layout>
|
|
269 |
</widget>
|
|
270 |
</item>
|
|
271 |
<item row="1" column="1">
|
|
272 |
<widget class="Line" name="line2">
|
|
273 |
<property name="orientation">
|
|
274 |
<enum>Qt::Vertical</enum>
|
|
275 |
</property>
|
|
276 |
</widget>
|
|
277 |
</item>
|
|
278 |
<item row="1" column="2">
|
|
279 |
<spacer name="horizontalSpacer">
|
|
280 |
<property name="orientation">
|
|
281 |
<enum>Qt::Horizontal</enum>
|
|
282 |
</property>
|
|
283 |
<property name="sizeHint" stdset="0">
|
|
284 |
<size>
|
|
285 |
<width>40</width>
|
|
286 |
<height>20</height>
|
|
287 |
</size>
|
|
288 |
</property>
|
|
289 |
</spacer>
|
|
290 |
</item>
|
|
291 |
<item row="2" column="0" colspan="2">
|
|
292 |
<widget class="Line" name="line1">
|
|
293 |
<property name="orientation">
|
|
294 |
<enum>Qt::Horizontal</enum>
|
|
295 |
</property>
|
|
296 |
</widget>
|
|
297 |
</item>
|
|
298 |
<item row="0" column="0">
|
|
299 |
<widget class="QLabel" name="label">
|
|
300 |
<property name="sizePolicy">
|
|
301 |
<sizepolicy hsizetype="Preferred" vsizetype="Expanding">
|
|
302 |
<horstretch>0</horstretch>
|
|
303 |
<verstretch>0</verstretch>
|
|
304 |
</sizepolicy>
|
|
305 |
</property>
|
|
306 |
<property name="lineWidth">
|
|
307 |
<number>0</number>
|
|
308 |
</property>
|
|
309 |
<property name="text">
|
|
310 |
<string>This test that all the frame style can handle margins and paddings correctly
|
|
311 |
(and the background of this label should be orange)</string>
|
|
312 |
</property>
|
|
313 |
</widget>
|
|
314 |
</item>
|
|
315 |
</layout>
|
|
316 |
</widget>
|
|
317 |
<resources/>
|
|
318 |
<connections/>
|
|
319 |
</ui>
|