Results 1 to 7 of 7

Thread: Virtual USB COM port with Qt 4.8

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #7
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Virtual USB COM port with Qt 4.8

    If the barcode reader injects scanned codes into the keyboard stream immediately after you plug it in (i.e. without installing drivers) then it is designed as a HID class device. Unless the manufacturer tells you otherwise and provides a driver that reconfigures the device it will never appear as a serial device (communications class).

    The keyboard input should go to whatever widget has focus. I see no reason that needs to be in dialog. If your focus is on a QLineEdit with a suitable validator for the bar codes then you should have a reasonable way to ensure you get the code either by scanning or manual keying (for those occasions when you are in a hurry and a barcode simply will not scan).

  2. The following user says thank you to ChrisW67 for this useful post:


Similar Threads

  1. Replies: 1
    Last Post: 13th March 2013, 08:44
  2. Qextserual can't detect virtual com-port
    By blm in forum Qt Programming
    Replies: 9
    Last Post: 13th December 2012, 07:45
  3. C++ virtual functions
    By sonulohani in forum Newbie
    Replies: 3
    Last Post: 23rd May 2012, 09:17
  4. Virtual destructors
    By jml in forum Qt Programming
    Replies: 6
    Last Post: 15th January 2008, 00:10
  5. Virtual Memory in Qt 4.2.2
    By Shuchi Agrawal in forum Newbie
    Replies: 3
    Last Post: 5th March 2007, 23:38

Tags for this Thread

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
  •  
Qt is a trademark of The Qt Company.