#ifndef THREE_H#define THREE_H#include <QMainWindow>namespace Ui { class three;}class three : public QMainWindow{ Q_OBJECTpublic: explicit three(QWidget *parent = 0); ~three();private: Ui::three *ui;public slots: void set_text();};
#include "three.h"#include "ui_three.h"three::three(QWidget *parent) : QMainWindow(parent), ui(new Ui::three){ ui->setupUi(this);// connect(three->ui->textEdit,clicked(),three,three->set_text)}three::~three(){ delete ui;}void three::set_text(){ ui->textEdit->setText("Здравствуй мир!!!");}