title: Draw, populate and print a table to PDF file with QT
body: <p>I successfully created a method that creates a PDF containing some text with QT.
  Here is the code:</p>
  
  <pre><code>QTextDocument doc;
  doc.setHtml("Some Text");
  
   QPrinter printer(QPrinter::HighResolution);
   printer.setOutputFileName("../out.pdf");
   printer.setOutputFormat(QPrinter::PdfFormat);
   doc.print(&amp;printer);
   printer.newPage();
  </code></pre>
  
  <p>Now I'd like to create a table with some variable values inside it.
  Something like this:</p>
  
  <pre><code>--------------------------------------------------
  |                    TableTitle                  |
  --------------------------------------------------
  |    Column1    |     Column2    |    Column3    |
  --------------------------------------------------
  |   var1value   |   var2value    |   var3value   |
  --------------------------------------------------
  </code></pre>
  
  <p>How can I achieve this? Should I use a library? If so, what libraries do you advise?</p>
  
  <p>Thanks</p>