title: Qt - using QString::arg to align text into columns
body: <p>I'm formatting a string using QString::arg, and I need the string to be formatted in columns. For example:</p>
  
  <pre><code>78.0    78.0    78.0
  0.0     0.0     78.0
  69.0    56.0    0.0
  </code></pre>
  
  <p>Right now I'm using<code>d += QString("%1").arg("78.0", -50, ' ');</code> for each column then <code>d += '\n'</code> for a new row. </p>
  
  <p>The only problem is that the space character isn't the same width as the digits, so things become misaligned:</p>
  
  <p><a href="https://i.stack.imgur.com/1dQXz.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1dQXz.jpg" alt="misalignment"></a></p>
  
  <p>All I want to know is how can I align the text into columns? Thanks.</p>