#ifndef WIDGET_H
#define WIDGET_H
#include <QWidget>
#include<QPushButton>
#include<QHBoxLayout>
#include<QVBoxLayout>
#include<QGridLayout>
#include<QLineEdit>
#include<QLabel>
class Widget : public QWidget
{
Q_OBJECT
public:
Widget(QWidget *parent = 0);
~Widget();
private:
QPushButton* btn1;
QHBoxLayout* layout1,*layout2;
QVBoxLayout *layout3;
QGridLayout *layout4;
QLineEdit *edit1, *edit2, *edit3;
QLabel *label1;
QLabel *label2;
private slots:
void on_clicked();
};
#endif // WIDGET_H
#include "widget.h"
Widget::Widget(QWidget *parent)
: QWidget(parent)
{
layout1=new QHBoxLayout;
layout2=new QHBoxLayout;
//layout3=new QVBoxLayout(this);
layout4=new QGridLayout(this);
btn1=new QPushButton;
edit1=new QLineEdit;
ed