title: Text from QPainter much nicer than from QPainterPath
body: <p>I want to draw text using <code>QPainter</code>, and I want to use <code>QPainterPath</code> first (because ultimately I want to rotate the text in all sorts of ways). However, I find that the text produced by <code>QPainterPath</code> is much uglier than the text produced by <code>QPainter</code>.</p>
  
  <p>The following code:</p>
  
  <pre><code>void MyWidget::paintEvent(QPaintEvent* /*event*/) {
  
       QFont font;
       font.setStyleHint(QFont::Times, QFont::PreferAntialias);
       font.setPointSize(30);
  
       QPainter painter;
       painter.begin(this);
       painter.setRenderHint(QPainter::Antialiasing);
       painter.setBrush(Qt::black);
       painter.setFont(font);
       painter.drawText(10, 40, "Hello World");
  
       QPainterPath textPath;
       textPath.addText(10, 100, font, "Hello world");
       painter.drawPath(textPath);
  
       painter.end();
  }
  </code></pre>
  
  <p>produces the following result:</p>
  
  <p><img src="https://i.stack.imgur.com/vxAIw.png" alt="enter image description here"></p>
  
  <p>The former is clearly much cleaner and nicer, especially in smaller fonts. What should I do to get the same result from <code>QPainterPath</code>?</p>
  
  <p>I'm producing the above results on a Windows 7 computer, with Qt 5.0.</p>