Is there a Qt facility for handling USB devices?
-
I'm surprised that there doesn't appear to be a Qt module for the management of USB devices. I'm not talking about serial-port-style communications over USB; I mean the enumeration and management of diverse USB peripherals.
I saw a Stack Overflow post that provided an example that #included <QUsb>, but I have no idea where that comes from. It appears that Qt 4 had a QUsbManager, but not now.
I've seen a couple of libusb wrappers for Qt on Github, but they haven't seen any activity for years.
What's the current best option for USB-device management in Qt?
-
I'm surprised that there doesn't appear to be a Qt module for the management of USB devices. I'm not talking about serial-port-style communications over USB; I mean the enumeration and management of diverse USB peripherals.
I saw a Stack Overflow post that provided an example that #included <QUsb>, but I have no idea where that comes from. It appears that Qt 4 had a QUsbManager, but not now.
I've seen a couple of libusb wrappers for Qt on Github, but they haven't seen any activity for years.
What's the current best option for USB-device management in Qt?
@Stokestack said in Is there a Qt facility for handling USB devices?:
What's the current best option for USB-device management in Qt?
There is none, you would need to use something like libusb.
-
@Stokestack said in Is there a Qt facility for handling USB devices?:
What's the current best option for USB-device management in Qt?
There is none, you would need to use something like libusb.
@jsulm Thanks for the reply. That's a pretty baffling and disappointing omission.
-
Hi,
KDE has the Solid framework which covers more than USB but might be of use.
-
@jsulm Thanks for the reply. That's a pretty baffling and disappointing omission.
@Stokestack said in Is there a Qt facility for handling USB devices?:
@jsulm Thanks for the reply. That's a pretty baffling and disappointing omission.
It's not particularly baffling. It's honestly a pretty uncommon need. Qt has a ton of features, but no one project is going to cover 100% of your needs, Every large application is going to need some sort of functionality outside of Qt.
The overwhelming majority of USB devices that most apps and users need to deal with day to day are things like storage, input devices, audio stuff, network stuff, etc. You normally interact with those using filesystem, HID event, audio, and socket API's without worrying about the fact that they might be happening over USB. You only need to deal with libUSB for stuff that is by definition outside the mainstream day to day use for most applications and most users.