QT_BEGIN_NAMESPACE
class Ui_MainWindow
{
public:
{
if (MainWindow->objectName().isEmpty())
MainWindow
->setObjectName
(QString::fromUtf8("MainWindow"));
MainWindow->resize(400, 300);
centralWidget
= new QWidget(MainWindow
);
centralWidget
->setObjectName
(QString::fromUtf8("centralWidget"));
verticalLayout->setSpacing(6);
verticalLayout->setContentsMargins(11, 11, 11, 11);
verticalLayout
->setObjectName
(QString::fromUtf8("verticalLayout"));
comboBox
->setObjectName
(QString::fromUtf8("comboBox"));
verticalLayout->addWidget(comboBox);
MainWindow->setCentralWidget(centralWidget);
menuBar
->setObjectName
(QString::fromUtf8("menuBar"));
menuBar
->setGeometry
(QRect(0,
0,
400,
20));
MainWindow->setMenuBar(menuBar);
mainToolBar
->setObjectName
(QString::fromUtf8("mainToolBar"));
MainWindow->addToolBar(Qt::TopToolBarArea, mainToolBar);
statusBar
->setObjectName
(QString::fromUtf8("statusBar"));
MainWindow->setStatusBar(statusBar);
retranslateUi(MainWindow); // <<<<<<<<<<<<<<<<<<<<<<<<< setupUi() calls retranslateUi();
comboBox->setCurrentIndex(0); // <<<<<<<<<<<<<<<<<<<<<<< then sets the starting index value you specified in Designer
QMetaObject::connectSlotsByName(MainWindow
);
// <<<<<< connections made now } // setupUi
{
comboBox->clear();
);
} // retranslateUi
};
QT_BEGIN_NAMESPACE
class Ui_MainWindow
{
public:
QWidget *centralWidget;
QVBoxLayout *verticalLayout;
QComboBox *comboBox;
QMenuBar *menuBar;
QToolBar *mainToolBar;
QStatusBar *statusBar;
void setupUi(QMainWindow *MainWindow)
{
if (MainWindow->objectName().isEmpty())
MainWindow->setObjectName(QString::fromUtf8("MainWindow"));
MainWindow->resize(400, 300);
centralWidget = new QWidget(MainWindow);
centralWidget->setObjectName(QString::fromUtf8("centralWidget"));
verticalLayout = new QVBoxLayout(centralWidget);
verticalLayout->setSpacing(6);
verticalLayout->setContentsMargins(11, 11, 11, 11);
verticalLayout->setObjectName(QString::fromUtf8("verticalLayout"));
comboBox = new QComboBox(centralWidget);
comboBox->setObjectName(QString::fromUtf8("comboBox"));
verticalLayout->addWidget(comboBox);
MainWindow->setCentralWidget(centralWidget);
menuBar = new QMenuBar(MainWindow);
menuBar->setObjectName(QString::fromUtf8("menuBar"));
menuBar->setGeometry(QRect(0, 0, 400, 20));
MainWindow->setMenuBar(menuBar);
mainToolBar = new QToolBar(MainWindow);
mainToolBar->setObjectName(QString::fromUtf8("mainToolBar"));
MainWindow->addToolBar(Qt::TopToolBarArea, mainToolBar);
statusBar = new QStatusBar(MainWindow);
statusBar->setObjectName(QString::fromUtf8("statusBar"));
MainWindow->setStatusBar(statusBar);
retranslateUi(MainWindow); // <<<<<<<<<<<<<<<<<<<<<<<<< setupUi() calls retranslateUi();
comboBox->setCurrentIndex(0); // <<<<<<<<<<<<<<<<<<<<<<< then sets the starting index value you specified in Designer
QMetaObject::connectSlotsByName(MainWindow); // <<<<<< connections made now
} // setupUi
void retranslateUi(QMainWindow *MainWindow)
{
MainWindow->setWindowTitle(QApplication::translate("MainWindow", "MainWindow", 0, QApplication::UnicodeUTF8));
comboBox->clear();
comboBox->insertItems(0, QStringList()
<< QApplication::translate("MainWindow", "A", 0, QApplication::UnicodeUTF8)
<< QApplication::translate("MainWindow", "B", 0, QApplication::UnicodeUTF8)
<< QApplication::translate("MainWindow", "C", 0, QApplication::UnicodeUTF8)
<< QApplication::translate("MainWindow", "D", 0, QApplication::UnicodeUTF8)
);
} // retranslateUi
};
To copy to clipboard, switch view to plain text mode
Bookmarks