Qt-UI
Q Line Edit
← QCheckbox | ● | QFileDialog →
QGroupBox *MyQMainWindow::createEdit(QString name, QString value,
QLineEdit **lineEdit)
{
QGroupBox *lineEditGroup = new QGroupBox(name);
QVBoxLayout *lineEditLayout = new QVBoxLayout;
lineEditGroup->setLayout(lineEditLayout);
*lineEdit = new QLineEdit(value);
lineEditLayout->addWidget(*lineEdit);
return(lineEditGroup);
}
QGroupBox *lineEditGroup = createEdit(tr("Line Edit"), text, &lineEdit);
connect(lineEdit,SIGNAL(textChanged(QString)),this,SLOT(changed1(QString)));
QLineEdit **lineEdit)
{
QGroupBox *lineEditGroup = new QGroupBox(name);
QVBoxLayout *lineEditLayout = new QVBoxLayout;
lineEditGroup->setLayout(lineEditLayout);
*lineEdit = new QLineEdit(value);
lineEditLayout->addWidget(*lineEdit);
return(lineEditGroup);
}
QGroupBox *lineEditGroup = createEdit(tr("Line Edit"), text, &lineEdit);
connect(lineEdit,SIGNAL(textChanged(QString)),this,SLOT(changed1(QString)));
← QCheckbox | ● | QFileDialog →