std::vector<QWidget *> widgets;widgets.push_back(new QPushButton);widgets.push_back(new QPushButton);widgets.push_back(new QComboBox);
void setupUi(QWidget *)
C++ (Qt)QPushButton *button = parentWidget->findChild<QPushButton *>("button1");