[PyQt] Re: Thermal Printer on QPrinter

Eduardo Willians edujurista at gmail.com
Wed Jan 21 14:00:04 GMT 2009


>  printer.setPaperSize(QSizeF(79, 72), printer.Millimeter)

David, I thank you for your help. Receipt printers use spool-paper, so
paperSize must be something like 72mm x "the size of the printing".

Based on your suggestion I tried the following:

printer.setPaperSize(QSizeF(72, printer.Custom), printer.Millimeter)
printer.setPaperSize(QSizeF(72, printer.Auto), printer.Millimeter)

And also inversed:

printer.setPaperSize(QSizeF(printer.Custom, 72), printer.Millimeter)
printer.setPaperSize(QSizeF(printer.Auto, 72), printer.Millimeter)

But none of these worked.

Thanks anyway.

Eduardo Willians


More information about the PyQt mailing list