Nothing strikes terror into the hearts of programmers like being asked to implement printer support. The act of turning pristine digital bits into ink on paper is messy in real life and can be just as messy in the software world. Fortunately, Qt provides the QtPrintSupport module, a cross-platform print system that can easily turn QTextDocument into hard-copy format, no matter what OS we're using.
Printing rich text
Updating the Invoice app for print support
Readers outside the United States almost certainly groaned when we hard-coded the dimensions of our document to 8.5×11, but never fear—we're going to make some changes that will allow us to set the size based on a user's selection of document...