QPrinter and raw data
-
Hi everyone just wondering if anyone got a nice technique to print on thermal printers using QPrinter..
is there a way to send raw text using QPrinter or any other Qt objects, not directly connected to the printer using the OS printing system.
(spooler on windows).[Edited]
I've done some research I'm wondering if there is a way to send raw text to the system spooler, I'll handle all the control chars,
my self.[EDIT: adjusted topic to be more precise, Volker]
-
I don't know exactly, depends a lot on your system. Some ideas: QLockSocket or QFile/QIoDevice to talk directly to your spool, QProcess calling "enscript" and "lpr". What system are you using?
-
Well I got the answer for windows os but it's you know not portable at all O.o.
I'd like a any os solution which is the main idea of developing with qt :)
"qt everywhere <3" though yeah.. I read about lpr for unix for mac the solution I haven't checked but im searching more for a code thats portable ! :) though using the os printer list example QPrinter could be cool if it had a send raw data method. -
[quote author="unclewerner" date="1302892799"]I don't know exactly, depends a lot on your system. Some ideas: QLockSocket or QFile/QIoDevice to talk directly to your spool, QProcess calling "enscript" and "lpr". What system are you using?[/quote]
hm QIoDevice to spool sounds like what I want if its portable for now I have a non-portable solution.