本文介绍了USB编程与Qt的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 有没有反正我可以做Qt的USB编程?我使用Qt Creator 2.6,它是基于Qt版本5.0.0,它是最新的Qt Creator与Microsoft Visual Studio 2010编译器。Is there anyway I can do USB programming in Qt? I am using Qt Creator 2.6 which is based on Qt version 5.0.0 and it is the latest Qt Creator which works with the Microsoft Visual Studio 2010 compiler.我有玩具叫 Dreamcheeky Thunder Missile Launcher ,我需要编程这个基于USB的设备。 I have the toy called "Dreamcheeky Thunder Missile Launcher" and I need to program this USB based device. 我试过LibUSB,但它搞砸了一切。它甚至重命名设备端口,我不得不撤消一切使用 USBDview 软件。但我想我安装不正确。我遵循这些说明。它是64位的指令,但我有32位,因为指令似乎没有很大的区别(而不是下载文件)我跟着它。这是我下载的 - libusb-win32-bin-1.2.6.0.zip I have tried LibUSB but it messed up everything. It even renamed the device port and I had to undo everything using USBDview software. But I guess I installed it incorrectly. I followed these instructions. It is instructions for 64 bit, but I got 32 bit and since the instructions seems not to have big difference (instead the download file) I followed it. This is what I downloaded - libusb-win32-bin-1.2.6.0.zip无论你推荐什么API它没有关系,甚至libusb,但请好好告诉我如何正确安装它。 Whatever the API you recommend it doesn't matter, even libusb, but please be kind enough to tell me how to install it properly. 我的操作系统是windows 7的最终32位。My OS is windows 7 ultimate 32 bit.推荐答案另一个良好的指令 libusb : http://www.dreamincode.net/forums/topic/148707-introduction-to-using-libusb-10/ libusb : libusb libusb-win32 (windows端口 - 在windows上使用此窗口!) libusb:libusblibusb-win32 (windows port - use this on windows!)如果您留在Windows上,可以使用If you stay on windows you can use WinUSB : WinUSB API 示例 安装 WinUSB:WinUSB APIExampleInstallation对于windows,你可以使用两者,但如果你的程序必须跨平台,你应该使用libusb 。For windows you can use both, but if your program has to be cross-platform you should use libusb. 这篇关于USB编程与Qt的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
09-21 20:54