How to turn a QTableView to a pdf
-
You write code to paint the data from the model underlying the table view to a QPrinter set to output PDF. How you access the data and format it is entirely up to you. Alternatively you can print an image of the widget on screen (a very different thing to the data in the table).
"Printing with Qt (Qt4)":http://qt-project.org/doc/qt-4.8/printing.html
"Qt Print Support (Qt5)":http://qt-project.org/doc/qt-5.1/qtprintsupport/qtprintsupport-index.html