title: page x of y using QPrinter
body: <p>im generating a pdf file from html code using qt:</p>
  
  <pre><code>QTextDocument *document = new QTextDocument();
  document-&gt;setHtml(htmlContent);
  
  QPrinter printer(QPrinter::HighResolution);
  printer.setPageSize(QPrinter::A4);
  printer.setOutputFormat(QPrinter::PdfFormat);
  printer.setOutputFileName("filename.pdf");
  
  document-&gt;print(printer);
  </code></pre>
  
  <p>Is it possible to have the page information "Page X of Y" instead of only the page number? If yes, how?</p>