title: Set Qlabel width
body: <p>I'm trying to make a ratio between 2 numbers (likes &amp; dislikes).</p>
  
  <p>The result is a number in percent. Then I want to make the width from the label equal that percent.</p>
  
  <p>So If there are 100 likes and 1 dislike. I want to make the dislike label 1 percent the width of the like bar. So basically like the youtube rating system.</p>
  
  <p>Example image: 
  <img src="https://i.stack.imgur.com/8vStM.jpg" alt="enter image description here"></p>
  
  <p>But I don't see any function to set the width of the label.
  So how do I need to do this, anyone have suggestions?</p>