Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QT QML integrate with thermal USB Printer
Forum Updated to NodeBB v4.3 + New Features

QT QML integrate with thermal USB Printer

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
11 Posts 4 Posters 1.2k Views 3 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.
  • R Offline
    R Offline
    RiyG22
    wrote on 22 Sept 2020, 12:08 last edited by
    #1

    Dear experts,

    I am learning QT and implement in my Kiosk based Application. I am trying to integrate a USB based thermal printer with the system and print the user selected coupon via printer.

    I went through QtPrintSupport library but I am not sure how to implement it with the Application. Any guidance will be really helpful for me.

    Thank you.

    J 1 Reply Last reply 22 Sept 2020, 12:14
    0
    • R RiyG22
      22 Sept 2020, 12:08

      Dear experts,

      I am learning QT and implement in my Kiosk based Application. I am trying to integrate a USB based thermal printer with the system and print the user selected coupon via printer.

      I went through QtPrintSupport library but I am not sure how to implement it with the Application. Any guidance will be really helpful for me.

      Thank you.

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 22 Sept 2020, 12:14 last edited by
      #2

      @RiyG22 How is this printer actually used? Is there an SDK to develop applications which use it?
      Also, are we talking about 3D printer or a simple paper printer?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      R 1 Reply Last reply 22 Sept 2020, 12:21
      0
      • J jsulm
        22 Sept 2020, 12:14

        @RiyG22 How is this printer actually used? Is there an SDK to develop applications which use it?
        Also, are we talking about 3D printer or a simple paper printer?

        R Offline
        R Offline
        RiyG22
        wrote on 22 Sept 2020, 12:21 last edited by RiyG22
        #3

        @jsulm Hi, Thank you very much for your quick reply. I am using this printer - https://eurocoincomponents.com/product/ms-fpt201k-panel-printer/

        I've used it with python before, accessed it using VID, PID and used escposprinter library there. It's a simple roll printer. There is no SDK to develop it, it works on USB protocol. It uses ESC/POS command.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 22 Sept 2020, 18:52 last edited by
          #4

          Hi,

          That's the kind of printer that is outside the Qt Print Support module scope.

          From what I can see, it's a serial port based device so you could use QSerialPort to communicate with it.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          R 1 Reply Last reply 23 Sept 2020, 06:06
          1
          • S SGaist
            22 Sept 2020, 18:52

            Hi,

            That's the kind of printer that is outside the Qt Print Support module scope.

            From what I can see, it's a serial port based device so you could use QSerialPort to communicate with it.

            R Offline
            R Offline
            RiyG22
            wrote on 23 Sept 2020, 06:06 last edited by
            #5

            @SGaist , thank you for your support. It doesn't create any serial port to communicate serially. How to integrate it then?
            USBDevice.png

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 23 Sept 2020, 18:43 last edited by
              #6

              If you list all the serial ports with QSerialPortInfo::availablePorts, what do you get ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              R 1 Reply Last reply 24 Sept 2020, 06:08
              0
              • S SGaist
                23 Sept 2020, 18:43

                If you list all the serial ports with QSerialPortInfo::availablePorts, what do you get ?

                R Offline
                R Offline
                RiyG22
                wrote on 24 Sept 2020, 06:08 last edited by
                #7

                It doesn't print anything for the printer. I have run this part of code:

                for(auto info: QSerialPortInfo::availablePorts()){
                        qDebug()<<info.portName()<<info.description()<<info.manufacturer();
                        if(!info.isBusy() && (info.description().contains("Silicon Labs CP210x USB to UART Bridge") || info.manufacturer().contains("Silicon Labs"))){
                            portInfo = info;
                            break;
                        }
                    }
                
                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on 24 Sept 2020, 19:18 last edited by
                  #8

                  What do you get ?

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  R 1 Reply Last reply 9 Oct 2020, 07:32
                  0
                  • S SGaist
                    24 Sept 2020, 19:18

                    What do you get ?

                    R Offline
                    R Offline
                    RiyG22
                    wrote on 9 Oct 2020, 07:32 last edited by
                    #9

                    @SGaist , I didn't get anything because It doesn't create any serial port on my device.

                    1 Reply Last reply
                    0
                    • S Offline
                      S Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on 9 Oct 2020, 19:08 last edited by
                      #10

                      Do you mean the list is empty ?

                      Interested in AI ? www.idiap.ch
                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                      1 Reply Last reply
                      0
                      • fcarneyF Offline
                        fcarneyF Offline
                        fcarney
                        wrote on 9 Oct 2020, 19:41 last edited by
                        #11

                        From website:
                        "Driver: Windows/Linux/Android OS"
                        Ask them for a driver.

                        C++ is a perfectly valid school of magic.

                        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