title: Qt How to print information via QPrinter?
body: <p>I've created new Qt C++ project. I want to use my printer to print out some message on a sheet of A4 paper. I am reading the documentation whole day and i can't figure out how to do this. I understood most of the things (only in the documentation), but the problem is that, that i don't know actually which of all printer libraries i should use? (PrinterDialog, qprinter, qpainter....)?</p>
  
  <p>I saw all code examples, but neither one of them works.</p>
  
  <p>My other question is what function should i use to check is there any ink in my printer device.</p>