title: Set text format on Qlabel on a number
body: <p>I am writing my first application on Qt. So far, to display any text on a <code>QLabel</code> I was using the following to set the format and the text:</p>
  
  <pre><code>ui-&gt;lat_UAV_label-&gt;setText(QString("&lt;span style=\" font-size:18pt; 
    font-weight:600; color:#0009d8;\"&gt;%1&lt;/span&gt;").arg(lat * RAD2DEG));
  </code></pre>
  
  <p>where "lat" is a double precision number and "RAD2DEG" is a constant to convert from radians to degrees. However, I only want to display 2 decimal digits on the label. I tried to do it using <code>QString().number</code>, but then the format styling is lost:</p>
  
  <pre><code>ui-&gt;lat_UAV_label-&gt;setText(QString("&lt;span style=\" font-size:18pt; 
      font-weight:600; color:#0009d8;\"&gt;%1&lt;/span&gt;").number(lat * RAD2DEG, 'f', 2);
  </code></pre>
  
  <p>I have tried other ways to do it, but it doesn't work. I think this should be much simpler than what I'm trying to do, but because I'm new to it, I don't know it.</p>