title: How to rotate text for drawText?
body: <p>I would like to rotate the text 45 degrees?</p>
  
  <pre><code>QFont font;
  font.setPixelSize(12);
  
  //grid
  for(int i = 0; i &lt; 10; i++){
      painter-&gt;drawLine(100, 100 + i * 800/9, 900, 100 + i * 800/9);
      str = QString::number((double)9 - i, 'd', 1);
      painter-&gt;setFont(font);
      painter-&gt;drawText(75, 100 + i * 800/9 - 6, 40, 40, 1, str);
  }
  </code></pre>