Answer the question
In order to leave comments, you need to log in
How to combine Qt5 and WinUSB?
Good day.
The task is to write special software that would read packets in real time from an external sensor connected via USB and display the information received in the form of a graph. With the interface part, everything is clear (fortunately, in the beta version of Qt 5.7, access to QCharts was opened), but with connecting the sensor via USB, options are possible. I will say right away that cross-platform is not required, Windows only, but XP support may be required. Actually, I have found only two options so far:
1. libusb is easy to connect, but working examples are not enough and, as I understand from the documentation, detection of newly connected devices is not supported on Windows
2. WinUSB - did not understand what headers need to be connected in order to at least initialize work with USB, for some reason this is not written in the MSDN examples. Googling, I realized that it should be winusb.h and windows.devices.usb.h, but even after that the code from the examples does not want to compile.
Actually, is it possible to connect to the USB bus like Qt's "signal" model? Or perhaps there is Qt binding to existing libraries?
Answer the question
In order to leave comments, you need to log in
As MSDN advises,
Start with the WinUsb Application template included with Microsoft Visual Studio (Ultimate or Professional)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question