Results 1 to 7 of 7

Thread: Qt communicating with USB device

  1. #1
    Join Date
    Jan 2010
    Posts
    7
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Qt communicating with USB device

    Hello again,

    One of the first projects I'm wanting to use Qt for is to communicate with a USB enabled device. Does Qt have native USB support? If not, what are your recommendations. This would initially be for the Windows platform.

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Qt communicating with USB device

    There is no native support for USB in Qt. If you are on Windows. Use the Windows API for USB.

  3. The following user says thank you to Lykurg for this useful post:

    jimmydean101 (28th February 2010)

  4. #3
    Join Date
    Jan 2010
    Posts
    7
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Qt communicating with USB device

    Sounds good. I'll look in that direction. Thanks

  5. #4
    Join Date
    Jan 2010
    Posts
    7
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Qt communicating with USB device

    Is there anyone that could supply me some examples of Qt using the Windows API for USB? I don't currently understand (still and noob) what classes are used to connect Qt with outside APIs.

    Thanks

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

    Default Re: Qt communicating with USB device

    You don't need a class to talk to outside APIs, just include the appropriate header files as per MSDN.

    You'll probably need the Windows DDK too.

  7. #6
    Join Date
    Jan 2010
    Posts
    7
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Qt communicating with USB device

    Understood. Thanks

  8. #7
    Join Date
    Jan 2010
    Posts
    7
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Qt communicating with USB device

    FYI:

    How to Use WinUSB to Communicate with a USB Device .

    Unfortunately WinUSB doesn't support isochronous transefer, so I'm doubting I'll be able to stream video off a remote webcam using this, but it'll do for starters. The link has a downloadable whitepaper.

Similar Threads

  1. Communicating with a USB device in Qt?
    By N3wb in forum Qt Programming
    Replies: 7
    Last Post: 3rd May 2011, 10:30
  2. Replies: 2
    Last Post: 12th January 2010, 00:13
  3. communicating between threads
    By freekill in forum Newbie
    Replies: 2
    Last Post: 27th November 2009, 08:13
  4. Problems communicating with external editor
    By titaniumdecoy in forum Qt Programming
    Replies: 1
    Last Post: 18th October 2009, 20:12
  5. QDataSream: No Device
    By jonging in forum Qt Programming
    Replies: 5
    Last Post: 20th June 2006, 22:30

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.