title: Get the value from a QLineEdit
body: <p>I have a <code>QLineEdit</code> that only allows numbers and I want to get the current value from it. I can't figure out how.</p>
  
  <pre><code>ui-&gt;lineEdit-&gt;setValidator(new QIntValidator(this));
  </code></pre>