title: Qt string builder in for loop
body: <p>following <a href="http://labs.qt.nokia.com/2011/06/13/string-concatenation-with-qstringbuilder/" rel="noreferrer">this</a> and <a href="http://doc-snapshot.qt-project.org/4.8/qstring.html#more-efficient-string-construction" rel="noreferrer">this</a> documentation I would use the QStringBuilder in a for loop. The code where I should apply it is</p>
  
  <pre><code>QStringList words;
  QString testString;
  
  for (auto it = words.constBegin(); it != words.constEnd(); ++it)
  {
      testString += "[" + *it + "] ";
  }
  </code></pre>
  
  <p>However I don't understand how I could write it to use the QStringBuilder as here I'm doing an assignment, instead the QStringBuilder requires me to use the % operator and do only one assignment following the docs.</p>