Results 1 to 6 of 6

Thread: Access USB from Qt???

  1. #1
    Join Date
    May 2008
    Location
    Spain
    Posts
    92
    Thanks
    13
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Access USB from Qt???

    Hello,

    I am surfing in the net looking for information about Qt and how to access USB port.
    I only find messages about libusb.
    My question is:
    has Qt native support to acces USB port or is it necessary to use libusb into Qt to access USB device??

    Best regards
    John Martin

  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: Access USB from Qt???

    Hi, unfortunately there is no native Qt USB port handling support.

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

    Default Re: Access USB from Qt???

    It depends on the reason why you want to access USB port. If you want to access a device which simulates a serial port for example, then there are such third party classes available.

  4. #4
    Join Date
    Feb 2011
    Location
    Bangalore
    Posts
    207
    Thanks
    20
    Thanked 28 Times in 27 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Access USB from Qt???

    AFAIK you will have to implement libusb directly. Its not much of a pain. Although if you have used the .net wrapper for libusb you may perhaps miss it. There is nothing like a qt wrapper for libusb. And yeah, it works ...

  5. #5
    Join Date
    Sep 2009
    Posts
    57
    Thanks
    7
    Thanked 5 Times in 4 Posts

    Default Re: Access USB from Qt???

    We had lots of fun working with libusb and also SliLabs usbxpress in GoldenCheetah. There is some example code in LibUsb.cpp and USBXpress.cpp over at github. See: https://github.com/srhea/GoldenCheet...e_3.0.0dev/src

    Regards,
    Mark

  6. #6
    Join Date
    May 2008
    Location
    Spain
    Posts
    92
    Thanks
    13
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Access USB from Qt???

    Thank you very much.

    At first, I will try with LibUsb.

    Best regards.

Similar Threads

  1. Can't access dll
    By waynew in forum Newbie
    Replies: 4
    Last Post: 15th November 2010, 13:06
  2. Can't access Baseclass
    By kingfinn in forum Qt Programming
    Replies: 3
    Last Post: 25th May 2010, 08:30
  3. NCReport and ms access
    By gutiory in forum Qt Programming
    Replies: 0
    Last Post: 6th April 2010, 07:31
  4. web access
    By ashwinibm in forum Newbie
    Replies: 1
    Last Post: 15th January 2010, 10:27
  5. ODBC and MS Access
    By allensr in forum Qt Programming
    Replies: 2
    Last Post: 10th April 2007, 23:41

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.