PDA

View Full Version : Scanning Barcode



codeman
17th January 2011, 20:30
Hello Friends,

when I use Barcode scanner on lineedit, grabbing the content is easy.
But I have no Idea, what about when the focus is perhaps not on a specific widget so that I can´t see the scanresult.
Which keyevent is my favorit where I can extract the scanned Code....


Thanx in Advance

squidge
17th January 2011, 20:41
keyPressEvent ?

It depends how the barcode tool works though...

codeman
17th January 2011, 21:21
After reading barcode it sends a return pressed.
But how to read before the cr signal is emitted????

marcvanriet
20th January 2011, 19:47
Hi,
Can't you configure the barcode reader to send a special key before the scan result ?

I typically let it send a function key, and define an action triggered by this function key. You can also install an event filter to a form which intercepts the function key and starts a 'scan' dialog to process the result of the barcode reader.

Best regards,
Marc