title: How to write output to the statusBar next to specific label in Qt
body: <p>I'm creating a notepad like application in Qt Creator and I want to have a text statistics written to the statusBar (fe. word, character count). In a form of <strong>"words: 14 characters: 80"</strong></p>
  
  <p>Currently I'm able to display the number of words as int with:</p>
  
  <pre><code>ui-&gt;statusBar-&gt;showMessage(QString::number(counter));
  </code></pre>
  
  <p>but when I wanted to add a label "words:" before the counter with:</p>
  
  <pre><code>ui-&gt;statusBar-&gt;addPermanentWidget(ui-&gt;label1, 1);
  </code></pre>
  
  <p>it ignores the counter and the label shows "above" it, hiding the counter.</p>
  
  <p>The goal is to have 4 kinds of counters in the statusBar.
  I'm currently looking for a widget that would allow me to print a static string like "words: " and a counter next to it.</p>