Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QPrinter and raw data
Forum Updated to NodeBB v4.3 + New Features

QPrinter and raw data

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 4.5k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dsylebee
    wrote on last edited by
    #1

    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]

    1 Reply Last reply
    0
    • frankcyblogic.deF Offline
      frankcyblogic.deF Offline
      frankcyblogic.de
      wrote on last edited by
      #2

      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?

      1 Reply Last reply
      0
      • D Offline
        D Offline
        dsylebee
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        • D Offline
          D Offline
          dsylebee
          wrote on last edited by
          #4

          [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.

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved