PDA

View Full Version : Get text from dynamic lineedit



wirasto
13th January 2010, 18:29
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)
{
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() << ...
}

wysota
13th January 2010, 18:56
Store pointers to those widgets somewhere.