Results 1 to 3 of 3

Thread: Tip for printing with cash register using Qt/C++?

  1. #1
    Join Date
    Oct 2013
    Posts
    142
    Thanks
    36
    Thanked 3 Times in 3 Posts
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows Android

    Default Tip for printing with cash register using Qt/C++?

    Can someone point me where can I learn more about communicating with POS/Cash register printers?

    I am trying to understanding more about it, I know that I need to use QSerialPort for communicating with them, but I seen on the internet that hexadecimal codes are sent to them, so I want to learn more about what info is sent to the printers.

  2. #2
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    1,536
    Thanked 284 Times in 279 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Tip for printing with cash register using Qt/C++?

    Every POS/Cash register printer has a communication protocol described in documentation. You must implement this protocol in your application.

  3. The following user says thank you to Lesiok for this useful post:

    adutzu89 (6th February 2015)

  4. #3
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Tip for printing with cash register using Qt/C++?

    The "hexadecimal codes" are human readable version of the bytes that are sent to the printer. They can represent printable letters like "A" (hex 41) or "7" (hex 37) or non-printable codes that make the printer do things like a new line (hex 0D and/or 0A), start/stop bold, or eject a sheet. Exactly what codes do what varies from printer to printer.

  5. The following user says thank you to ChrisW67 for this useful post:

    adutzu89 (16th July 2016)

Similar Threads

  1. Register custom types ?!
    By codeman in forum Qt Quick
    Replies: 0
    Last Post: 22nd May 2013, 18:02
  2. Replies: 0
    Last Post: 29th April 2013, 11:47
  3. Qt Creator PC register is not available
    By okaresz in forum Qt Tools
    Replies: 0
    Last Post: 11th February 2013, 21:21
  4. What is register int?
    By kiboi in forum General Programming
    Replies: 2
    Last Post: 6th November 2012, 23:27
  5. How to register a font with Qt?
    By Vadi in forum Qt Programming
    Replies: 5
    Last Post: 1st February 2009, 05:33

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.