I was wondering how could I integrate a USB barcode scanner into a Qt application, as well as a barcode printer.
I looked for tutorials but didn’t find anything interesting out there. Any ideas?
Thanks in advance.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Most barcode scanners, IIRC basically work like a keyboard from the point of view of your application. You just provide a text field and the barcode reader “types” what it reads. So you don’t really need to worry about that, other than validating the input and maybe providing a hidden text field if you don’t want the input shown.
Or a modal dialog saying “scan item” with focus on a hidden text area.
In terms of a barcode printer, if you know the standard to which you are outputting, you would do well creating an SVG or PDF and exporting to print. This way your app can handle print dimensions and so on.
You don’t say what language you are using, so I can’t find you a barcode writing library.