title: Scale Image in QWidget for printing
body: <p>I use the following code to print a complex widget with text and static images:</p>
  
  <pre><code>printer = QPrinter()
  printer.setResolution(PRINTER_DPI)
  painter = QPainter(printer)
  painter.scale(SCALE, SCALE)
  my_widget.render(painter)
  painter.end()
  </code></pre>
  
  <p>Text looks nice after applying <code>scale()</code> but the pixmaps on the widget still look pixelated when printed. I tried using a higher resolution source image and setting <code>scaledContents</code> on <code>QLabel</code> but this didn't seem to help.</p>
  
  <p>Any ideas how I can increase the image resolution for printing?</p>
  
  <p><strong>Edit</strong>: I'm still interested in an answer but in the meantime I worked around the issue by using <code>QSvgWidget</code> with an svg source image instead of <code>QLabel</code>.</p>