title: How to convert the text of qml a textField to float and int
body: <p>I tried to pass a value inserted in textField in a C++ <code>float</code> variable.</p>
  
  <p>The following code is a representation of what I need.</p>
  
  <pre><code>TextField{id:textField1}
  Button{onClicked:function.printFloat = textField1.text.toFloat}
  </code></pre>
  
  <p>but I received the following warning message: </p>
  
  <pre><code>qrc:/qml/window/WindowConfigTelemetry.qml:215: Error: Cannot assign QString to float
  </code></pre>
  
  <p>What is wrong in my code ?</p>