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. List hotpluggable devices in combobox
Qt 6.11 is out! See what's new in the release blog

List hotpluggable devices in combobox

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 4 Posters 469 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.
  • D Offline
    D Offline
    Dylan Holt
    wrote on last edited by
    #1

    Hello guys, I'm using QT on Linux. I am trying to list hot-pluggable devices like pendrive in a combo box. Can anyone advise me on how I can do this?

    jsulmJ raven-worxR 2 Replies Last reply
    0
    • D Dylan Holt

      Hello guys, I'm using QT on Linux. I am trying to list hot-pluggable devices like pendrive in a combo box. Can anyone advise me on how I can do this?

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

      @Dylan-Holt You can try https://doc.qt.io/qt-5/qstorageinfo.html#mountedVolumes
      Or go for https://stackoverflow.com/questions/16450160/usb-programming-with-qt

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

      1 Reply Last reply
      2
      • D Dylan Holt

        Hello guys, I'm using QT on Linux. I am trying to list hot-pluggable devices like pendrive in a combo box. Can anyone advise me on how I can do this?

        raven-worxR Offline
        raven-worxR Offline
        raven-worx
        Moderators
        wrote on last edited by raven-worx
        #3

        @Dylan-Holt
        cross platform approach:
        https://forum.qt.io/topic/91162/how-to-get-information-about-the-connected-device
        if you need a dynamic notification when a device is inserted: http://libusb.sourceforge.net/api-1.0/hotplug.html

        --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
        If you have a question please use the forum so others can benefit from the solution in the future

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

          Hi,

          To add to my fellow, another cross-platform library is KDE's Solid framework

          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
          • D Offline
            D Offline
            Dylan Holt
            wrote on last edited by
            #5

            Thank you guys for the suggestions. I will give them a try.

            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