1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
#include "multiplewidgets.h" #include "ui_widget1.h" #include "ui_widget2.h" Widget1::Widget1(QWidget *parent) : QWidget(parent), ui(new Ui::Widget1) { ui->setupUi(this); } Widget2::Widget2(QWidget *parent) : QWidget(parent), ui(new Ui::Widget2) { ui->setupUi(this); }