Qprinter receipt issue



  • 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


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.