Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Is there a Qt facility for handling USB devices?
Forum Updated to NodeBB v4.3 + New Features

Is there a Qt facility for handling USB devices?

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 4 Posters 430 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • StokestackS Offline
    StokestackS Offline
    Stokestack
    wrote on last edited by
    #1

    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?

    jsulmJ 1 Reply Last reply
    0
    • StokestackS Stokestack

      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?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @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.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      StokestackS 1 Reply Last reply
      1
      • jsulmJ jsulm

        @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.

        StokestackS Offline
        StokestackS Offline
        Stokestack
        wrote on last edited by
        #3

        @jsulm Thanks for the reply. That's a pretty baffling and disappointing omission.

        W 1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi,

          KDE has the Solid framework which covers more than USB but might be of use.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          1
          • StokestackS Stokestack

            @jsulm Thanks for the reply. That's a pretty baffling and disappointing omission.

            W Offline
            W Offline
            wrosecrans
            wrote on last edited by
            #5

            @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.

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved