I create 5 lineedit like this. But I don't know how to get text from every line edit.

Qt Code:
  1. .......
  2. ........
  3. for (int i=0; i <5; ++i)
  4. {
  5. QLineEdit *le=new QLineEdit(this);
  6. grid->addWidget(le, i, 0);
  7. }
  8.  
  9. QPushButton *tombol=new QPushButton(tr("Save"));
  10. connect(tombol, SIGNAL(clicked()), this, SLOT(simpan()));
  11. }
  12.  
  13. void Formulir::simpan()
  14. {
  15. //qDebug() << ...
  16. }
To copy to clipboard, switch view to plain text mode