[Qt-interest] How can I read bar code
Andre Somers
andre at familiesomers.nl
Tue Jul 28 17:18:51 CEST 2009
Nitesh wrote:
> Hello,
>
> I am building store billing software with qt. I don't have prior
> experience with Qt. I am using MySQL for database in my application. I
> need to implement bar code scanner to my application. I have
> barcodehash as a database field. I want to fetch to data corresponding
> to the barcodehash received from barcode scanner to show the product
> in the store. Would you please suggest me how can I implement barcode
> scanner.
>
Did you play around with your badcode scanner a bit yet?
AFAIK, these devices often work by acting like they are a keyboard. That
is: if they scan a code they recognize, they send the code they read to
the system as if it was typed on the keyboard. If that is the case for
your scanner, it becomes trivial. Just build your application as if you
don't have a barcode scanner but require keyboard entry for your codes
(so, with the appropriate QLineEdits). Instead of typing in the values,
scan them. Presto. A bit more advanced implementation would of course
recognize the scan code, and put it in the appropriate box itself, but
that can be added later.
Tip: try to ask a bit more specific questions, if you want to get
specific answers. Remember the people on this list generally don't own
crystal balls that show them the details of your problem.
André
More information about the Qt-interest-old
mailing list