Results 1 to 4 of 4

Thread: Scanning Barcode

  1. #1
    Join Date
    Apr 2009
    Posts
    206
    Thanks
    34
    Thanked 2 Times in 2 Posts

    Default Scanning Barcode

    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

  2. #2
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Scanning Barcode

    keyPressEvent ?

    It depends how the barcode tool works though...

  3. #3
    Join Date
    Apr 2009
    Posts
    206
    Thanks
    34
    Thanked 2 Times in 2 Posts

    Default Re: Scanning Barcode

    After reading barcode it sends a return pressed.
    But how to read before the cr signal is emitted????

  4. #4
    Join Date
    Aug 2009
    Location
    Belgium
    Posts
    310
    Thanks
    10
    Thanked 31 Times in 25 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Scanning Barcode

    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

Similar Threads

  1. Qt4 and TWAIN scanning
    By ^NyAw^ in forum Qt Programming
    Replies: 27
    Last Post: 21st February 2019, 11:33
  2. drawing barcode with GNU Barcode
    By Feoran in forum Qt Programming
    Replies: 3
    Last Post: 15th December 2010, 07:55
  3. Image scanning
    By Scratch in forum Qt Programming
    Replies: 4
    Last Post: 22nd July 2009, 08:36
  4. scanning images
    By sriluyarlagadda in forum Qt Programming
    Replies: 8
    Last Post: 9th May 2008, 12:37
  5. Scanning a image
    By xgoan in forum Qt Programming
    Replies: 1
    Last Post: 9th August 2006, 10:36

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.