title: QPainter.drawText ugly font rendering
body: <pre class="lang-py prettyprint-override"><code>qfont = QtGui.QFont('Ubuntu', 9)
  #qfont.setHintingPreference(QtGui.QFont.PreferDefaultHinting)
  #qfont.setStyleStrategy(QtGui.QFont.PreferAntialias)
  qfont.setStyle(QtGui.QFont.StyleNormal)
  qfont.setWeight(QtGui.QFont.Normal)
  qpaint.setFont(qfont)
  qpaint.drawText(qpix.rect() , QtCore.Qt.AlignBottom + QtCore.Qt.AlignCenter, Invent.get_item(i)['type'])
  </code></pre>
  
  <p>Font rendering (anti-aliasing) is different from the one used by other applications.</p>
  
  <p><a href="http://rghost.net/53129449/image.png" rel="nofollow">http://rghost.net/53129449/image.png</a></p>
  
  <p>How do I make it look the same?</p>