title: Why can't I print to PDF in BlackBerry-10 with QTextDocument?
body: <pre><code>QTextDocument *td = new QTextDocument();
  td-&gt;setHtml("&lt;p&gt;blah blah blah &lt;/p&gt;");
  QPrinter printer;
  printer.setOutputFormat(QPrinter:: PdfFormat);
  printer.setOrientation(QPrinter::Portrait);
  printer.setPaperSize(QPrinter::Letter);
  printer.setOutputFileName(filenamer);
  td-&gt;print(&amp;printer);
  </code></pre>
  
  <p>Permission to write files are good. QPrinter prints pdf from images in other code I have. But HTML in a QTextDocument doesn't work. Doesn anyone know why? I use Cascades as my GUI.</p>