C++ (Qt)#include <QWidget> #include "QPushButton" namespace Ui { class connect_adaptera;} class connect_adaptera: public QWidget{ public: connect_adaptera(QWidget *parent = 0); ~connect_adaptera();private: Ui::connect_adaptera *m_ui;};
C++ (Qt)#include "ui_connect_adaptera.h" connect_adaptera::connect_adaptera(QWidget *parent) :QWidget(parent), m_ui(new Ui::connect_adaptera()){ m_ui->setupUi(this);} connect_adaptera::~connect_adaptera(){ delete m_ui; m_ui = 0;}}