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. Event handling from Barcode Scanner
Qt 6.11 is out! See what's new in the release blog

Event handling from Barcode Scanner

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 393 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.
  • V Offline
    V Offline
    vinnadipo09
    wrote on last edited by
    #1

    Screenshot from 2020-06-11 11-16-58.png
    Hello guys, I need some help. I am trying to get barcode value from the barcode scanner and then query the database and fill my table for the POS as in the diagram attached. I have been battling for a while on how to go about it. The first approach was to have the line edit capture the barcode then it returns the product and populates it on the table. The second approach was to have the barcode in the stock ID and have a function to fetch it from the database. My question is:
    I haven't been able to automatically fetch data without pressing enter for both cases to have the data fetched from the database as in the supermarket. Using qtablewidget item changed requires me to press enter after obtaining the barcode which is not supposed to be the case. Can anyone help me on how to go about this? Thank you in advance.

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

      Hi,

      How is your barcode scanner device seen ? As a keyboard ?

      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
      1

      • Login

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