I create 5 lineedit like this. But I don't know how to get text from every line edit.
.......
........
for (int i=0; i <5; ++i)
{
grid->addWidget(le, i, 0);
}
connect(tombol, SIGNAL(clicked()), this, SLOT(simpan()));
}
void Formulir::simpan()
{
//qDebug() << ...
}
.......
........
for (int i=0; i <5; ++i)
{
QLineEdit *le=new QLineEdit(this);
grid->addWidget(le, i, 0);
}
QPushButton *tombol=new QPushButton(tr("Save"));
connect(tombol, SIGNAL(clicked()), this, SLOT(simpan()));
}
void Formulir::simpan()
{
//qDebug() << ...
}
To copy to clipboard, switch view to plain text mode
Bookmarks