USB Programming with Qt

Is there a way to program USB in Qt? I am using Qt Creator 2.6, which is based on Qt version 5.0.0, and this is the last Qt Creator that works with the Microsoft Visual Studio 2010 compiler.

I have a toy called " Dreamcheeky Thunder Missile Launcher " and I need to program this USB device.

I tried LibUSB but it ruined everything. He even renamed the device port, and I had to cancel everything using the USBDview software. But I assume that I installed it incorrectly. I followed these instructions . These are instructions for 64 bits, but I got 32 bits, and since the instructions do not seem to make much difference (instead of the download file) I followed it. This is what I downloaded - libusb-win32-bin-1.2.6.0.zip

No matter which API you recommend, it doesn't matter, even libusb, but please be kind enough to tell me how to install it correctly.

My OS is 7-bit Windows 7.

+3
source share
2 answers

Here is another good instruction for libusb : http://www.dreamincode.net/forums/topic/148707-introduction-to-using-libusb-10/

If you stay in the windows, you can use

You can use both options for windows, but if your program should be cross-platform, you should use libusb.

+2
source

ollo answer is out of date. TL DR use libusb.info . A little explanation:

Originally was libusb-0,1. They later upgraded the API to libusb-1.0, but since libusb-0.1 took so long, many projects were not bothered by switching (like Python 2/3). libusb-0.1 was not available for Windows, but libusb-1.0 is now available for all major platforms.

libusb-win32 is the libusb-0,1 port for Windows. You should not use it for new code.

libusb.org is an old website for libusb. The latest version is from 2012 and there are no Windows downloads.

libusb.info is the current site for libusb. It contains downloads of libusb-1.0 for all platforms and which you should use for new code .

To confuse things even further, sourceforge the libusb-win32 mailing list is still used to develop libusb.info.

+14
source

All Articles