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>400</width>
|
|
10 |
<height>300</height>
|
|
11 |
</rect>
|
|
12 |
</property>
|
|
13 |
<property name="windowTitle">
|
|
14 |
<string>Form</string>
|
|
15 |
</property>
|
|
16 |
<property name="styleSheet">
|
|
17 |
<string notr="true"/>
|
|
18 |
</property>
|
|
19 |
<layout class="QVBoxLayout" name="verticalLayout">
|
|
20 |
<item>
|
|
21 |
<widget class="QTabWidget" name="tabWidget">
|
|
22 |
<property name="styleSheet">
|
|
23 |
<string notr="true"> QTabWidget::pane { / * The tab widget frame * /
|
|
24 |
border-top: 2px solid #C2C7CB;
|
|
25 |
}
|
|
26 |
|
|
27 |
QTabWidget::tab-bar {
|
|
28 |
left: 5px; / * move to the right by 5px * /
|
|
29 |
}
|
|
30 |
|
|
31 |
/ * Style the tab using the tab sub-control. Note that
|
|
32 |
it reads QTabBar _not_ QTabWidget * /
|
|
33 |
QTabBar::tab {
|
|
34 |
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
|
|
35 |
stop: 0 #E1E1E1, stop: 0.4 #DDDDDD,
|
|
36 |
stop: 0.5 #D8D8D8, stop: 1.0 #D3D3D3);
|
|
37 |
border: 2px solid #C4C4C3;
|
|
38 |
border-bottom-color: #C2C7CB; / * same as the pane color * /
|
|
39 |
border-top-left-radius: 4px;
|
|
40 |
border-top-right-radius: 4px;
|
|
41 |
min-width: 8ex;
|
|
42 |
padding: 2px;
|
|
43 |
}
|
|
44 |
|
|
45 |
QTabBar::tab:selected, QTabBar::tab:hover {
|
|
46 |
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
|
|
47 |
stop: 0 #fafafa, stop: 0.4 #f4f4f4,
|
|
48 |
stop: 0.5 #e7e7e7, stop: 1.0 #fafafa);
|
|
49 |
}
|
|
50 |
|
|
51 |
QTabBar::tab:selected {
|
|
52 |
border-color: #9B9B9B;
|
|
53 |
border-bottom-color: #C2C7CB; / * same as pane color * /
|
|
54 |
}
|
|
55 |
|
|
56 |
QTabBar::tab:!selected {
|
|
57 |
margin-top: 2px; / * make non-selected tabs look smaller * /
|
|
58 |
}
|
|
59 |
|
|
60 |
|
|
61 |
</string>
|
|
62 |
</property>
|
|
63 |
<property name="currentIndex">
|
|
64 |
<number>1</number>
|
|
65 |
</property>
|
|
66 |
<widget class="QWidget" name="tab">
|
|
67 |
<attribute name="title">
|
|
68 |
<string>Tab 1</string>
|
|
69 |
</attribute>
|
|
70 |
</widget>
|
|
71 |
<widget class="QWidget" name="tab_3">
|
|
72 |
<attribute name="title">
|
|
73 |
<string>Tab 2</string>
|
|
74 |
</attribute>
|
|
75 |
</widget>
|
|
76 |
<widget class="QWidget" name="tab_2">
|
|
77 |
<attribute name="title">
|
|
78 |
<string/>
|
|
79 |
</attribute>
|
|
80 |
</widget>
|
|
81 |
</widget>
|
|
82 |
</item>
|
|
83 |
<item>
|
|
84 |
<widget class="QTabWidget" name="tabWidget_2">
|
|
85 |
<property name="styleSheet">
|
|
86 |
<string notr="true">QTabWidget::pane { / * The tab widget frame * /
|
|
87 |
border-top: 2px solid #C2C7CB;
|
|
88 |
}
|
|
89 |
|
|
90 |
QTabWidget::tab-bar {
|
|
91 |
left: 5px; / * move to the right by 5px * /
|
|
92 |
}
|
|
93 |
|
|
94 |
/ * Style the tab using the tab sub-control. Note that
|
|
95 |
it reads QTabBar _not_ QTabWidget * /
|
|
96 |
QTabBar::tab {
|
|
97 |
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
|
|
98 |
stop: 0 #E1E1E1, stop: 0.4 #DDDDDD,
|
|
99 |
stop: 0.5 #D8D8D8, stop: 1.0 #D3D3D3);
|
|
100 |
border: 2px solid #C4C4C3;
|
|
101 |
border-bottom-color: #C2C7CB; / * same as the pane color * /
|
|
102 |
border-top-left-radius: 4px;
|
|
103 |
border-top-right-radius: 4px;
|
|
104 |
min-width: 8ex;
|
|
105 |
padding: 2px;
|
|
106 |
}
|
|
107 |
|
|
108 |
QTabBar::tab:selected, QTabBar::tab:hover {
|
|
109 |
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
|
|
110 |
stop: 0 #fafafa, stop: 0.4 #f4f4f4,
|
|
111 |
stop: 0.5 #e7e7e7, stop: 1.0 #fafafa);
|
|
112 |
}
|
|
113 |
|
|
114 |
QTabBar::tab:selected {
|
|
115 |
border-color: #9B9B9B;
|
|
116 |
border-bottom-color: #C2C7CB; / * same as pane color * /
|
|
117 |
}
|
|
118 |
|
|
119 |
QTabBar::tab:!selected {
|
|
120 |
margin-top: 2px; / * make non-selected tabs look smaller * /
|
|
121 |
}
|
|
122 |
|
|
123 |
/ * make use of negative margins for overlapping tabs * /
|
|
124 |
QTabBar::tab:selected {
|
|
125 |
/ * expand/overlap to the left and right by 4px * /
|
|
126 |
margin-left: -4px;
|
|
127 |
margin-right: -4px;
|
|
128 |
}
|
|
129 |
|
|
130 |
QTabBar::tab:first:selected {
|
|
131 |
margin-left: 0; / * the first selected tab has nothing to overlap with on the left * /
|
|
132 |
}
|
|
133 |
|
|
134 |
QTabBar::tab:last:selected {
|
|
135 |
margin-right: 0; / * the last selected tab has nothing to overlap with on the right * /
|
|
136 |
}
|
|
137 |
|
|
138 |
QTabBar::tab:only-one {
|
|
139 |
margin: 0; / * if there is only one tab, we don't want overlapping margins * /
|
|
140 |
}</string>
|
|
141 |
</property>
|
|
142 |
<property name="currentIndex">
|
|
143 |
<number>1</number>
|
|
144 |
</property>
|
|
145 |
<widget class="QWidget" name="tab_4">
|
|
146 |
<attribute name="title">
|
|
147 |
<string>Tab 1</string>
|
|
148 |
</attribute>
|
|
149 |
</widget>
|
|
150 |
<widget class="QWidget" name="tab_7">
|
|
151 |
<attribute name="title">
|
|
152 |
<string>Tab 2</string>
|
|
153 |
</attribute>
|
|
154 |
</widget>
|
|
155 |
<widget class="QWidget" name="tab_5">
|
|
156 |
<attribute name="title">
|
|
157 |
<string/>
|
|
158 |
</attribute>
|
|
159 |
</widget>
|
|
160 |
</widget>
|
|
161 |
</item>
|
|
162 |
<item>
|
|
163 |
<widget class="QTabWidget" name="tabWidget_3">
|
|
164 |
<property name="styleSheet">
|
|
165 |
<string notr="true"> QTabWidget::pane { / * The tab widget frame * /
|
|
166 |
border-top: 2px solid #C2C7CB;
|
|
167 |
position: absolute;
|
|
168 |
top: -0.5em;
|
|
169 |
}
|
|
170 |
|
|
171 |
QTabWidget::tab-bar {
|
|
172 |
alignment: center;
|
|
173 |
}
|
|
174 |
|
|
175 |
/ * Style the tab using the tab sub-control. Note that
|
|
176 |
it reads QTabBar _not_ QTabWidget * /
|
|
177 |
QTabBar::tab {
|
|
178 |
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
|
|
179 |
stop: 0 #E1E1E1, stop: 0.4 #DDDDDD,
|
|
180 |
stop: 0.5 #D8D8D8, stop: 1.0 #D3D3D3);
|
|
181 |
border: 2px solid #C4C4C3;
|
|
182 |
border-bottom-color: #C2C7CB; / * same as the pane color * /
|
|
183 |
border-top-left-radius: 4px;
|
|
184 |
border-top-right-radius: 4px;
|
|
185 |
min-width: 8ex;
|
|
186 |
padding: 2px;
|
|
187 |
}
|
|
188 |
|
|
189 |
QTabBar::tab:selected, QTabBar::tab:hover {
|
|
190 |
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
|
|
191 |
stop: 0 #fafafa, stop: 0.4 #f4f4f4,
|
|
192 |
stop: 0.5 #e7e7e7, stop: 1.0 #fafafa);
|
|
193 |
}
|
|
194 |
|
|
195 |
QTabBar::tab:selected {
|
|
196 |
border-color: #9B9B9B;
|
|
197 |
border-bottom-color: #C2C7CB; / * same as pane color * /
|
|
198 |
}</string>
|
|
199 |
</property>
|
|
200 |
<property name="currentIndex">
|
|
201 |
<number>1</number>
|
|
202 |
</property>
|
|
203 |
<widget class="QWidget" name="tab_6">
|
|
204 |
<attribute name="title">
|
|
205 |
<string>Tab 1</string>
|
|
206 |
</attribute>
|
|
207 |
</widget>
|
|
208 |
<widget class="QWidget" name="tab_9">
|
|
209 |
<attribute name="title">
|
|
210 |
<string>Tab 2</string>
|
|
211 |
</attribute>
|
|
212 |
</widget>
|
|
213 |
<widget class="QWidget" name="tab_8">
|
|
214 |
<attribute name="title">
|
|
215 |
<string/>
|
|
216 |
</attribute>
|
|
217 |
</widget>
|
|
218 |
</widget>
|
|
219 |
</item>
|
|
220 |
</layout>
|
|
221 |
</widget>
|
|
222 |
<resources/>
|
|
223 |
<connections/>
|
|
224 |
</ui>
|