QApplication app(argc, argv);
QWidget wgt;
QString str;
QLineEdit* line_edit_1 = new QLineEdit;
QPushButton* push_but = new QPushButton;
QHBoxLayout* phbxLayout = new QHBoxLayout;
phbxLayout->setContentsMargins(10, 10, 10, 10);
phbxLayout->setSpacing(20);
phbxLayout->addWidget(line_edit_1);
wgt.setLayout(phbxLayout);
wgt.show();