Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. India
  4. Qprinter receipt issue
Qt 6.11 is out! See what's new in the release blog

Qprinter receipt issue

Scheduled Pinned Locked Moved India
2 Posts 2 Posters 1.7k 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.
  • S Offline
    S Offline
    saravanavelu39
    wrote on last edited by
    #1

    Hi all,
    This is my code
    @QESCPOS printer("/dev/ttyUSB0");

    printer.open(QIODevice::ReadWrite);
    printer.autoConfig();
    
    /*printer.setBaudRate(BAUD19200);
    printer.setFlowControl(FLOW_HARDWARE);
    printer.setParity(PAR_NONE);
    printer.setCharacterCodeTable(QESCPOS::CCT_PC850);
    printer.setInternationalCharacterSet(QESCPOS::ICS_CHINESE);
    
    
    
    printer.initialize();*/
    

    // printer.cutPaper(true, 0);

    /*QList<QImage> l;
    l.append(QImage("/home/qdot/Downloads/logo.png"));
    printer.defineNVRaster(l);*/
    
    printer.write("Test: 大虾多士\n");
    printer.cutPaper(true, 0);@
    

    in here i need to display (” Test: 大虾多士\n”) in the receipt,,please give me a suggesstion

    1 Reply Last reply
    0
    • J Offline
      J Offline
      Julian Farnandez
      Banned
      wrote on last edited by Julian Farnandez
      #2
      This post is deleted!
      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