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. Qt and barcode
Forum Updated to NodeBB v4.3 + New Features

Qt and barcode

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 910 Views 2 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.
  • F Offline
    F Offline
    Fulgurance
    wrote on last edited by
    #1

    Hello, i have somes questions:
    -Are there library with Qt to connect to barcode reader and get current flashed code ?
    -Is it allowed to sell an Qt application, and what is the limitation with free-license ? Just the support ?

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by mrjj
      #2

      Hi
      1:
      Not directly in Qt but there is
      https://github.com/ftylitak/qzxing
      2:
      Its not a free license as such. Its open-source license which has rules to follow.
      alt text

      Yes you can sell your app.

      You get many extra things with a license. The whole
      Device Creation part and much more. So its not just support.
      They changed it now - so its also how fast you will get bugfixes etc.

      1 Reply Last reply
      3
      • F Offline
        F Offline
        Fulgurance
        wrote on last edited by
        #3

        Okay, very interesting library ! Thanks ! Just one question, i the main page of this library, i look i can decode codebar from picture, but how can i obtain this picture, with this library? Or other ?

        mrjjM 1 Reply Last reply
        0
        • F Fulgurance

          Okay, very interesting library ! Thanks ! Just one question, i the main page of this library, i look i can decode codebar from picture, but how can i obtain this picture, with this library? Or other ?

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Fulgurance
          Hi
          Often you would not get an image unless its on a smartphone and you use its camera to capture image.
          You would directly get data from the scanner. The scanner know the formats and
          decode them on scan.
          How you talk to scanner, depends on how its connected. Often via serial and sometimes usb.

          So what scanner do you have ?

          Sometimes scanners are setup as a virtual keyboard so when you scan the data is
          sent as keys and you can scan to say aQLineLaebl to get its data.

          So how you read the data depends to huge degree on the setup/scanner.

          1 Reply Last reply
          2
          • KH-219DesignK Offline
            KH-219DesignK Offline
            KH-219Design
            wrote on last edited by
            #5

            Several months ago I worked on a Qt application that was required to receive input from a barcode scanner of the type(s) shown here: https://www.barcodesinc.com/symbol/symbol-barcode-scanners.htm

            Having never even held a barcode scanner in my hand before, I assumed it was a more complicated peripheral than it actually is.

            I had exactly the case that @mrjj described: a keyboard.

            The scanners from Symbol (and probably many others) are literally detected as a USB Keyboard by your PC. When you press a button on the scanner and the red scan light finds a barcode, it simply types the barcode characters like a "phantom" person using an unseen keyboard.

            In my application, the barcode scanner provided the ONLY input, so I listened for QKeyEvent(s) at a global level. In an application that also processes human interaction from other buttons and dropdowns, then I imagine that the "trick" is to make sure that a designated text input control has focus when the scan takes place, and then the "scanner-keyboard" will type the barcode into that GUI control.

            If you end up with that kind of "scanner-keyboard", then no special third-party code would be needed to interact with the scanner.

            www.219design.com
            Software | Electrical | Mechanical | Product Design

            1 Reply Last reply
            3

            • Login

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