widget.h:
#ifndef WIDGET_H
#define WIDGET_H
#include <QWidget>
#include <QPushButton>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QLineEdit>
#include <QLabel>
class Widget : public QWidget
{
Q_OBJECT
public:
Widget(QWidget *parent = nullptr);
~Widget();
private:
QPushButton *btn1;
QHBoxLayout *layout1;
QHBoxLayout *layout2;
QVBoxLayout *layout3;
QLineEdit *edit1;
QLineEdit *edit2;
QLineEdit *edit3;
QLabel *label1;
private slots:
void on_clicked();
};
#endif // WIDGET_H
main.cpp:
#incl