绑定.h .cpp和.ui
.h中添加
namespace Ui {
class AddProbesWidget;
}
类中添加
Ui::AddProbesWidget *ui;
.cpp中
#include "ui_AddProbesWidget.h"
ui(new Ui::AddProbesWidget)
ui->setupUi(this);
ui中 objectname名字改成类名
"ui_AddProbesWidget.h"中把类名改成ui_类名
.h中添加
namespace Ui {
class AddProbesWidget;
}
类中添加
Ui::AddProbesWidget *ui;
.cpp中
#include "ui_AddProbesWidget.h"
ui(new Ui::AddProbesWidget)
ui->setupUi(this);
ui中 objectname名字改成类名
"ui_AddProbesWidget.h"中把类名改成ui_类名