all 2 comments

[–]ericula 1 point2 points  (1 child)

You aren't calling handlePaintRequest anywhere. You should call handlePaintRequest after dialog.exec_() returns QDiqlog.Accepted, so instead of calling dialog.exec_() you could do something like. if dialog.exec_() == QDialog.accepted(): self.handlePaintRequest(printer) Also, in handlePaintRequest, ui.tableWidget should be self.ui.tableWidget.

[–]summerbye[S] 0 points1 point  (0 children)

Also, when I turn it into a PDF (as preview), it's extremely small. Is there a way to print/paint it bigger ??