Re: [PyQt] Re: Thermal Printer on QPrinter

2009-01-21 Thread Eduardo Willians
> Perhaps Eric4 just sends characters to a printer, as someone suggested for a > solution to your problem. This might be one way to achieve what you want, > though you miss out on the abstraction provided by Qt if you do this. > > I experimented a little with printing to custom paper sizes, modifyi

Re: [PyQt] Re: Thermal Printer on QPrinter

2009-01-21 Thread dboddie
On Wednesday 21 January 2009, Eduardo Willians wrote: > > 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". OK, but you might want to try a fixe

Re: [PyQt] Re: Thermal Printer on QPrinter

2009-01-21 Thread Eduardo Willians
> 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),

Re: [PyQt] Re: Thermal Printer on QPrinter

2009-01-20 Thread dboddie
On Tue Jan 20 12:47:17 GMT 2009, Eduardo Willians wrote: > Does anyone know *anything* that could help? If you know one little > thing please help. Have you tried the (new in Qt 4.4) QPrinter.setPaperSize() method that accepts a QSizeF object? printer.setPaperSize(QSizeF(79, 72), printer.Milli

Re: [PyQt] Re: Thermal Printer on QPrinter

2009-01-20 Thread Eduardo Willians
> Hello Eduardo, >if you refer to normal receipt printers (like epson pos printers), i > use them but after have problems using directly with qt like you are trying > i configured the cups spool for the printer in raw format and create a file > in the encoding configured for the printer (cp

Re: [PyQt] Re: Thermal Printer on QPrinter

2009-01-20 Thread Eduardo Willians
> Hello Eduardo, >if you refer to normal receipt printers (like epson pos printers), i > use them but after have problems using directly with qt like you are trying > i configured the cups spool for the printer in raw format and create a file > in the encoding configured for the printer (cp

Re: [PyQt] Re: Thermal Printer on QPrinter

2009-01-20 Thread Linos
Hello Eduardo, if you refer to normal receipt printers (like epson pos printers), i use them but after have problems using directly with qt like you are trying i configured the cups spool for the printer in raw format and create a file in the encoding configured for the printer (cp850) in pyth

[PyQt] Re: Thermal Printer on QPrinter

2009-01-20 Thread Eduardo Willians
> Well, I'm trying to config a thermal printer (bematech[1]) with 79mm > of paper width (72mm of printing capacity) and continous feed. But is > not working correctly. > > Here is untill I got: > > > app = QApplication(sys.argv) > printer=QPrinter() > printer.setFullPage(True) > printer.setPaperSo

[PyQt] Re: Thermal Printer on QPrinter

2009-01-20 Thread Eduardo Willians
Does anyone know *anything* that could help? If you know one little thing please help. Thanks ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt