绑定.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_类名
Table of Contents