1/********************************************************************************
2** Form generated from reading UI file 'mainwindow.ui'
3**
4** Created by: Qt User Interface Compiler version 5.15.9
5**
6** WARNING! All changes made in this file will be lost when recompiling UI file!
7********************************************************************************/
8
9#ifndef UI_MAINWINDOW_H
10#define UI_MAINWINDOW_H
11
12#include <QtCore/QVariant>
13#include <QtWidgets/QAction>
14#include <QtWidgets/QApplication>
15#include <QtWidgets/QCheckBox>
16#include <QtWidgets/QComboBox>
17#include <QtWidgets/QDialogButtonBox>
18#include <QtWidgets/QFrame>
19#include <QtWidgets/QGridLayout>
20#include <QtWidgets/QLabel>
21#include <QtWidgets/QLineEdit>
22#include <QtWidgets/QListWidget>
23#include <QtWidgets/QMainWindow>
24#include <QtWidgets/QMenu>
25#include <QtWidgets/QMenuBar>
26#include <QtWidgets/QRadioButton>
27#include <QtWidgets/QSpacerItem>
28#include <QtWidgets/QSpinBox>
29#include <QtWidgets/QStatusBar>
30#include <QtWidgets/QVBoxLayout>
31#include <QtWidgets/QWidget>
32
33QT_BEGIN_NAMESPACE
34
35class Ui_MainWindow
36{
37public:
38 QAction *exitAction;
39 QAction *aboutQtAction;
40 QAction *editStyleAction;
41 QAction *aboutAction;
42 QWidget *centralwidget;
43 QVBoxLayout *vboxLayout;
44 QFrame *mainFrame;
45 QGridLayout *gridLayout;
46 QCheckBox *agreeCheckBox;
47 QLabel *label;
48 QLabel *nameLabel;
49 QRadioButton *maleRadioButton;
50 QLabel *passwordLabel;
51 QComboBox *countryCombo;
52 QLabel *ageLabel;
53 QLabel *countryLabel;
54 QLabel *genderLabel;
55 QLineEdit *passwordEdit;
56 QRadioButton *femaleRadioButton;
57 QSpinBox *ageSpinBox;
58 QComboBox *nameCombo;
59 QSpacerItem *spacerItem;
60 QSpacerItem *spacerItem1;
61 QDialogButtonBox *buttonBox;
62 QListWidget *professionList;
63 QMenuBar *menubar;
64 QMenu *menu_File;
65 QMenu *menu_Help;
66 QStatusBar *statusbar;
67
68 void setupUi(QMainWindow *MainWindow)
69 {
70 if (MainWindow->objectName().isEmpty())
71 MainWindow->setObjectName(QString::fromUtf8(str: "MainWindow"));
72 MainWindow->resize(w: 400, h: 413);
73 exitAction = new QAction(MainWindow);
74 exitAction->setObjectName(QString::fromUtf8(str: "exitAction"));
75 aboutQtAction = new QAction(MainWindow);
76 aboutQtAction->setObjectName(QString::fromUtf8(str: "aboutQtAction"));
77 editStyleAction = new QAction(MainWindow);
78 editStyleAction->setObjectName(QString::fromUtf8(str: "editStyleAction"));
79 aboutAction = new QAction(MainWindow);
80 aboutAction->setObjectName(QString::fromUtf8(str: "aboutAction"));
81 centralwidget = new QWidget(MainWindow);
82 centralwidget->setObjectName(QString::fromUtf8(str: "centralwidget"));
83 vboxLayout = new QVBoxLayout(centralwidget);
84#ifndef Q_OS_MAC
85 vboxLayout->setSpacing(6);
86#endif
87#ifndef Q_OS_MAC
88 vboxLayout->setContentsMargins(left: 9, top: 9, right: 9, bottom: 9);
89#endif
90 vboxLayout->setObjectName(QString::fromUtf8(str: "vboxLayout"));
91 mainFrame = new QFrame(centralwidget);
92 mainFrame->setObjectName(QString::fromUtf8(str: "mainFrame"));
93 mainFrame->setFrameShape(QFrame::StyledPanel);
94 mainFrame->setFrameShadow(QFrame::Raised);
95 gridLayout = new QGridLayout(mainFrame);
96#ifndef Q_OS_MAC
97 gridLayout->setSpacing(6);
98#endif
99#ifndef Q_OS_MAC
100 gridLayout->setContentsMargins(left: 9, top: 9, right: 9, bottom: 9);
101#endif
102 gridLayout->setObjectName(QString::fromUtf8(str: "gridLayout"));
103 agreeCheckBox = new QCheckBox(mainFrame);
104 agreeCheckBox->setObjectName(QString::fromUtf8(str: "agreeCheckBox"));
105
106 gridLayout->addWidget(agreeCheckBox, row: 6, column: 0, rowSpan: 1, columnSpan: 5);
107
108 label = new QLabel(mainFrame);
109 label->setObjectName(QString::fromUtf8(str: "label"));
110 label->setAlignment(Qt::AlignRight|Qt::AlignTop|Qt::AlignTrailing);
111
112 gridLayout->addWidget(label, row: 5, column: 0, rowSpan: 1, columnSpan: 1);
113
114 nameLabel = new QLabel(mainFrame);
115 nameLabel->setObjectName(QString::fromUtf8(str: "nameLabel"));
116 nameLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
117
118 gridLayout->addWidget(nameLabel, row: 0, column: 0, rowSpan: 1, columnSpan: 1);
119
120 maleRadioButton = new QRadioButton(mainFrame);
121 maleRadioButton->setObjectName(QString::fromUtf8(str: "maleRadioButton"));
122
123 gridLayout->addWidget(maleRadioButton, row: 1, column: 1, rowSpan: 1, columnSpan: 1);
124
125 passwordLabel = new QLabel(mainFrame);
126 passwordLabel->setObjectName(QString::fromUtf8(str: "passwordLabel"));
127 passwordLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
128
129 gridLayout->addWidget(passwordLabel, row: 3, column: 0, rowSpan: 1, columnSpan: 1);
130
131 countryCombo = new QComboBox(mainFrame);
132 countryCombo->addItem(atext: QString());
133 countryCombo->addItem(atext: QString());
134 countryCombo->addItem(atext: QString());
135 countryCombo->addItem(atext: QString());
136 countryCombo->addItem(atext: QString());
137 countryCombo->addItem(atext: QString());
138 countryCombo->addItem(atext: QString());
139 countryCombo->setObjectName(QString::fromUtf8(str: "countryCombo"));
140
141 gridLayout->addWidget(countryCombo, row: 4, column: 1, rowSpan: 1, columnSpan: 4);
142
143 ageLabel = new QLabel(mainFrame);
144 ageLabel->setObjectName(QString::fromUtf8(str: "ageLabel"));
145 ageLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
146
147 gridLayout->addWidget(ageLabel, row: 2, column: 0, rowSpan: 1, columnSpan: 1);
148
149 countryLabel = new QLabel(mainFrame);
150 countryLabel->setObjectName(QString::fromUtf8(str: "countryLabel"));
151 countryLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
152
153 gridLayout->addWidget(countryLabel, row: 4, column: 0, rowSpan: 1, columnSpan: 1);
154
155 genderLabel = new QLabel(mainFrame);
156 genderLabel->setObjectName(QString::fromUtf8(str: "genderLabel"));
157 genderLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
158
159 gridLayout->addWidget(genderLabel, row: 1, column: 0, rowSpan: 1, columnSpan: 1);
160
161 passwordEdit = new QLineEdit(mainFrame);
162 passwordEdit->setObjectName(QString::fromUtf8(str: "passwordEdit"));
163 passwordEdit->setEchoMode(QLineEdit::Password);
164
165 gridLayout->addWidget(passwordEdit, row: 3, column: 1, rowSpan: 1, columnSpan: 4);
166
167 femaleRadioButton = new QRadioButton(mainFrame);
168 femaleRadioButton->setObjectName(QString::fromUtf8(str: "femaleRadioButton"));
169
170 gridLayout->addWidget(femaleRadioButton, row: 1, column: 2, rowSpan: 1, columnSpan: 2);
171
172 ageSpinBox = new QSpinBox(mainFrame);
173 ageSpinBox->setObjectName(QString::fromUtf8(str: "ageSpinBox"));
174 ageSpinBox->setMinimum(12);
175 ageSpinBox->setValue(22);
176
177 gridLayout->addWidget(ageSpinBox, row: 2, column: 1, rowSpan: 1, columnSpan: 2);
178
179 nameCombo = new QComboBox(mainFrame);
180 nameCombo->setObjectName(QString::fromUtf8(str: "nameCombo"));
181 nameCombo->setEditable(true);
182
183 gridLayout->addWidget(nameCombo, row: 0, column: 1, rowSpan: 1, columnSpan: 4);
184
185 spacerItem = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
186
187 gridLayout->addItem(item: spacerItem, row: 1, column: 4, rowSpan: 1, columnSpan: 1);
188
189 spacerItem1 = new QSpacerItem(61, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
190
191 gridLayout->addItem(item: spacerItem1, row: 2, column: 3, rowSpan: 1, columnSpan: 2);
192
193 buttonBox = new QDialogButtonBox(mainFrame);
194 buttonBox->setObjectName(QString::fromUtf8(str: "buttonBox"));
195 buttonBox->setOrientation(Qt::Horizontal);
196 buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::NoButton|QDialogButtonBox::Ok);
197
198 gridLayout->addWidget(buttonBox, row: 7, column: 3, rowSpan: 1, columnSpan: 2);
199
200 professionList = new QListWidget(mainFrame);
201 new QListWidgetItem(professionList);
202 new QListWidgetItem(professionList);
203 new QListWidgetItem(professionList);
204 professionList->setObjectName(QString::fromUtf8(str: "professionList"));
205
206 gridLayout->addWidget(professionList, row: 5, column: 1, rowSpan: 1, columnSpan: 4);
207
208
209 vboxLayout->addWidget(mainFrame);
210
211 MainWindow->setCentralWidget(centralwidget);
212 menubar = new QMenuBar(MainWindow);
213 menubar->setObjectName(QString::fromUtf8(str: "menubar"));
214 menubar->setGeometry(QRect(0, 0, 400, 29));
215 menu_File = new QMenu(menubar);
216 menu_File->setObjectName(QString::fromUtf8(str: "menu_File"));
217 menu_Help = new QMenu(menubar);
218 menu_Help->setObjectName(QString::fromUtf8(str: "menu_Help"));
219 MainWindow->setMenuBar(menubar);
220 statusbar = new QStatusBar(MainWindow);
221 statusbar->setObjectName(QString::fromUtf8(str: "statusbar"));
222 MainWindow->setStatusBar(statusbar);
223#if QT_CONFIG(shortcut)
224 label->setBuddy(professionList);
225 nameLabel->setBuddy(nameCombo);
226 passwordLabel->setBuddy(passwordEdit);
227 ageLabel->setBuddy(ageSpinBox);
228 countryLabel->setBuddy(countryCombo);
229#endif // QT_CONFIG(shortcut)
230
231 menubar->addAction(action: menu_File->menuAction());
232 menubar->addAction(action: menu_Help->menuAction());
233 menu_File->addAction(action: editStyleAction);
234 menu_File->addSeparator();
235 menu_File->addAction(action: exitAction);
236 menu_Help->addAction(action: aboutAction);
237 menu_Help->addAction(action: aboutQtAction);
238
239 retranslateUi(MainWindow);
240
241 countryCombo->setCurrentIndex(6);
242 professionList->setCurrentRow(0);
243
244
245 QMetaObject::connectSlotsByName(o: MainWindow);
246 } // setupUi
247
248 void retranslateUi(QMainWindow *MainWindow)
249 {
250 MainWindow->setWindowTitle(QCoreApplication::translate(context: "MainWindow", key: "Style Sheet", disambiguation: nullptr));
251 exitAction->setText(QCoreApplication::translate(context: "MainWindow", key: "&Exit", disambiguation: nullptr));
252 aboutQtAction->setText(QCoreApplication::translate(context: "MainWindow", key: "About Qt", disambiguation: nullptr));
253 editStyleAction->setText(QCoreApplication::translate(context: "MainWindow", key: "Edit &Style...", disambiguation: nullptr));
254 aboutAction->setText(QCoreApplication::translate(context: "MainWindow", key: "About", disambiguation: nullptr));
255#if QT_CONFIG(tooltip)
256 agreeCheckBox->setToolTip(QCoreApplication::translate(context: "MainWindow", key: "Please read the LICENSE file before checking", disambiguation: nullptr));
257#endif // QT_CONFIG(tooltip)
258 agreeCheckBox->setText(QCoreApplication::translate(context: "MainWindow", key: "I accept the terms and &conditions", disambiguation: nullptr));
259 label->setText(QCoreApplication::translate(context: "MainWindow", key: "Profession:", disambiguation: nullptr));
260 nameLabel->setText(QCoreApplication::translate(context: "MainWindow", key: "&Name:", disambiguation: nullptr));
261#if QT_CONFIG(tooltip)
262 maleRadioButton->setToolTip(QCoreApplication::translate(context: "MainWindow", key: "Check this if you are male", disambiguation: nullptr));
263#endif // QT_CONFIG(tooltip)
264 maleRadioButton->setText(QCoreApplication::translate(context: "MainWindow", key: "&Male", disambiguation: nullptr));
265 passwordLabel->setText(QCoreApplication::translate(context: "MainWindow", key: "&Password:", disambiguation: nullptr));
266 countryCombo->setItemText(index: 0, text: QCoreApplication::translate(context: "MainWindow", key: "Egypt", disambiguation: nullptr));
267 countryCombo->setItemText(index: 1, text: QCoreApplication::translate(context: "MainWindow", key: "France", disambiguation: nullptr));
268 countryCombo->setItemText(index: 2, text: QCoreApplication::translate(context: "MainWindow", key: "Germany", disambiguation: nullptr));
269 countryCombo->setItemText(index: 3, text: QCoreApplication::translate(context: "MainWindow", key: "India", disambiguation: nullptr));
270 countryCombo->setItemText(index: 4, text: QCoreApplication::translate(context: "MainWindow", key: "Italy", disambiguation: nullptr));
271 countryCombo->setItemText(index: 5, text: QCoreApplication::translate(context: "MainWindow", key: "Norway", disambiguation: nullptr));
272 countryCombo->setItemText(index: 6, text: QCoreApplication::translate(context: "MainWindow", key: "Pakistan", disambiguation: nullptr));
273
274#if QT_CONFIG(tooltip)
275 countryCombo->setToolTip(QCoreApplication::translate(context: "MainWindow", key: "Specify country of origin", disambiguation: nullptr));
276#endif // QT_CONFIG(tooltip)
277#if QT_CONFIG(statustip)
278 countryCombo->setStatusTip(QCoreApplication::translate(context: "MainWindow", key: "Specify country of origin", disambiguation: nullptr));
279#endif // QT_CONFIG(statustip)
280 ageLabel->setText(QCoreApplication::translate(context: "MainWindow", key: "&Age:", disambiguation: nullptr));
281 countryLabel->setText(QCoreApplication::translate(context: "MainWindow", key: "Country:", disambiguation: nullptr));
282 genderLabel->setText(QCoreApplication::translate(context: "MainWindow", key: "Gender:", disambiguation: nullptr));
283#if QT_CONFIG(tooltip)
284 passwordEdit->setToolTip(QCoreApplication::translate(context: "MainWindow", key: "Specify your password", disambiguation: nullptr));
285#endif // QT_CONFIG(tooltip)
286#if QT_CONFIG(statustip)
287 passwordEdit->setStatusTip(QCoreApplication::translate(context: "MainWindow", key: "Specify your password", disambiguation: nullptr));
288#endif // QT_CONFIG(statustip)
289 passwordEdit->setText(QCoreApplication::translate(context: "MainWindow", key: "Password", disambiguation: nullptr));
290#if QT_CONFIG(tooltip)
291 femaleRadioButton->setToolTip(QCoreApplication::translate(context: "MainWindow", key: "Check this if you are female", disambiguation: nullptr));
292#endif // QT_CONFIG(tooltip)
293 femaleRadioButton->setText(QCoreApplication::translate(context: "MainWindow", key: "&Female", disambiguation: nullptr));
294#if QT_CONFIG(tooltip)
295 ageSpinBox->setToolTip(QCoreApplication::translate(context: "MainWindow", key: "Specify your age", disambiguation: nullptr));
296#endif // QT_CONFIG(tooltip)
297#if QT_CONFIG(statustip)
298 ageSpinBox->setStatusTip(QCoreApplication::translate(context: "MainWindow", key: "Specify your age", disambiguation: nullptr));
299#endif // QT_CONFIG(statustip)
300#if QT_CONFIG(tooltip)
301 nameCombo->setToolTip(QCoreApplication::translate(context: "MainWindow", key: "Specify your name", disambiguation: nullptr));
302#endif // QT_CONFIG(tooltip)
303
304 const bool __sortingEnabled = professionList->isSortingEnabled();
305 professionList->setSortingEnabled(false);
306 QListWidgetItem *___qlistwidgetitem = professionList->item(row: 0);
307 ___qlistwidgetitem->setText(QCoreApplication::translate(context: "MainWindow", key: "Developer", disambiguation: nullptr));
308 QListWidgetItem *___qlistwidgetitem1 = professionList->item(row: 1);
309 ___qlistwidgetitem1->setText(QCoreApplication::translate(context: "MainWindow", key: "Student", disambiguation: nullptr));
310 QListWidgetItem *___qlistwidgetitem2 = professionList->item(row: 2);
311 ___qlistwidgetitem2->setText(QCoreApplication::translate(context: "MainWindow", key: "Fisherman", disambiguation: nullptr));
312 professionList->setSortingEnabled(__sortingEnabled);
313
314#if QT_CONFIG(tooltip)
315 professionList->setToolTip(QCoreApplication::translate(context: "MainWindow", key: "Select your profession", disambiguation: nullptr));
316#endif // QT_CONFIG(tooltip)
317#if QT_CONFIG(statustip)
318 professionList->setStatusTip(QCoreApplication::translate(context: "MainWindow", key: "Specify your name here", disambiguation: nullptr));
319#endif // QT_CONFIG(statustip)
320#if QT_CONFIG(whatsthis)
321 professionList->setWhatsThis(QCoreApplication::translate(context: "MainWindow", key: "Specify your name here", disambiguation: nullptr));
322#endif // QT_CONFIG(whatsthis)
323 menu_File->setTitle(QCoreApplication::translate(context: "MainWindow", key: "&File", disambiguation: nullptr));
324 menu_Help->setTitle(QCoreApplication::translate(context: "MainWindow", key: "&Help", disambiguation: nullptr));
325 } // retranslateUi
326
327};
328
329namespace Ui {
330 class MainWindow: public Ui_MainWindow {};
331} // namespace Ui
332
333QT_END_NAMESPACE
334
335#endif // UI_MAINWINDOW_H
336

source code of qtbase/examples/widgets/widgets/stylesheet/.uic/ui_mainwindow.h