No need for 3rd party libraries for exporting content to PDF as fatjuicymole pointed out. There is a simple example in Qt documentation about how to write PDF file, see QPrinter::isValid