Hi,

I would like to use QFormLayout for a typical form-like widget and my problem is that I don't know to extract any data from my form. Now I just made a small example for learning purposes, there I have this:
class MainWindow : public QMainWindow
Qt Code:
  1. {
  2. Q_OBJECT
  3.  
  4. public:
  5. explicit MainWindow(QWidget *parent = 0);
  6. ~MainWindow();
  7.  
  8. private:
  9. Ui::MainWindow *ui;
  10.  
  11. QFormLayout * formlo;
  12. QGroupBox *formGroupBox;
  13. };
To copy to clipboard, switch view to plain text mode 

and this:
Qt Code:
  1. MainWindow::MainWindow(QWidget *parent) :
  2. QMainWindow(parent),
  3. ui(new Ui::MainWindow)
  4. {
  5. ui->setupUi(this);
  6.  
  7. this->formlo = new QFormLayout;
  8. this->formlo->addRow(new QLabel("Elso sor:"),new QLineEdit);
  9. formGroupBox = new QGroupBox(tr("Form layout"));
  10. formGroupBox->setLayout(formlo);
  11.  
  12. ui->formLayout->addWidget(formGroupBox);
  13. }
To copy to clipboard, switch view to plain text mode 

which works perfect, but no form is without purpose, so now I can't find the way how to extract the user-given input data from the QLineEdit. I thought maybe itemAt() could be my friend, but I'm not that sure about that, I'm a bit confused actually. Is there maybe a good built-in example? The "Basic Layouts" one gives hints only for displaying.