title: Collecting values from form's widgets
body: <p>Given the following:</p>
  
  <pre><code>struct Property {
    QWidget *label;
    QWidget *field;
  };
  QList&lt;Property*&gt; properties;
  </code></pre>
  
  <p>In which most of the <code>field</code>s are <code>QLineEdit</code>s but some are <code>QTimeEdit</code>s and might be other kinds, like <code>QDateEdit</code>.</p>
  
  <p>This is used to (conveniently) make a form this way:</p>
  
  <pre><code>for(int i = 0; i != properties.size(); i++)
      formLayout-&gt;addRow( properties.at(i)-&gt;label,properties.at(i)-&gt;field );
  </code></pre>
  
  <p>And I'm thinking in collect the values from the form's <code>field</code>s in the same fashion:</p>
  
  <pre><code>foreach (const Property *p, properties) 
      p-&gt;field-&gt;value()
  </code></pre>
  
  <p>The problem is there is no such <code>value()</code> function.</p>
  
  <p>Is this design ok? Which should be the approach in order to achieve the <code>value()</code>?</p>