Create a PDF document for printing in Qt from a template
There are several ways to create a PDF document in Qt. You already mentioned two of them. I propose some improvement for the QTextDocument approach. Rather than manually writing a QTextDocument, you can create it from HTML-formatted text. QString html = “<div align=right>” “City, 11/11/2015” “</div>” “<div align=left>” “Sender Name<br>” “street 34/56A<br>” “121-43 city” “</div>” … Read more