#include <QtWidgets>
#include <QLineEdit>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QWidget window;
window.resize(320, 240);
window.setWindowTitle
(QApplication::translate("childwidget", "Child widget"));
window.show();
//! [create, position and show]
QPushButton *button = new QPushButton(
QApplication::translate("childwidget", "Press me"), &window);
button->move(100, 100);
button->show();
QLineEdit *qe1 = new QLineEdit( QApplication::translate("childwidget", "ab"), &window);
qe1->setText("abc");
qe1->setObjectName("qe1");
qe1->resize(300,30);
qe1->show();
//! [create, position and show]
return app.exec();
}
//! [main program]