How to create a pdf or textfile in QT?
-
@Aromakc
There is https://doc.qt.io/qt-5/qtpdf-pdfviewer-example.html.
There is the whole https://doc.qt.io/qt-5/qpdf.html namespace classes. -
Hi
Just as a note.
Using something like
https://sourceforge.net/projects/qtrpt/
might be more fun than handcrafting the layout using a painter. -
obviously there are many ways to achieve this. You could make a LaTeX/XeTeX file containing placeholders and replace them using Qt, then render to PDF using pdftex command line tool