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....)?
I saw all code examples, but neither one of them works.
My other question is what function should i use to check is there any ink in my printer device.