title: How to make a ruler on the border of a QGraphicsView
body: <p>I am working on a small <code>.ui</code> project and I am was trying to understand how to properly make a ruler on a <code>QGraphicsView</code>. </p>
  
  <p>So when the use sees the image it looks like the following:</p>
  
  <p><img src="https://i.imgur.com/uKD0l88.png" alt="rulerA"></p>
  
  <p>But if the user needs to zoom-in (or zoom-out) the ruler moves accordingly along with the value of the measurements:</p>
  
  <p><img src="https://i.imgur.com/cCEQoMm.png" alt="rulerB"></p>
  
  <p>Thanks for shedding light on this issue and sor providing any potential example or point to the right direction.</p>