title: Qt - Converting float to QString
body: <p>This seems like it should be very simple, but I'm going through the docs and not seeing anything. I just need to convert a number that is represented as a <code>float</code> object into a <code>QString</code> object. I know there is the function <code>QString::number()</code> that can be used for other types like <code>int</code> and <code>double</code>, like so:
  <code>int a = 1;
   QString b = QString::number(a);</code></p>
  
  <p>...however this doesn't seem to work for <code>float</code>. Perhaps there is some way where it is converted first from <code>float</code> to another type, and then from that type to <code>QString</code>? If anyone has any ideas I'd appreciate it. Thanks!</p>