PDA

View Full Version : Access USB from Qt???



webquinty
3rd June 2011, 17:41
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

Lykurg
3rd June 2011, 17:50
Hi, unfortunately there is no native Qt USB port handling support.

squidge
3rd June 2011, 19:59
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.

pkj
4th June 2011, 06:43
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 :)...

liversedge
4th June 2011, 13:13
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/GoldenCheetah/tree/release_3.0.0dev/src

Regards,
Mark

webquinty
6th June 2011, 08:40
Thank you very much.

At first, I will try with LibUsb.

Best regards.