Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. India
  4. How to read the dynamic path of USB pendrive connected in qt?

How to read the dynamic path of USB pendrive connected in qt?

Scheduled Pinned Locked Moved Unsolved India
4 Posts 3 Posters 1.4k Views
  • 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.
  • S Offline
    S Offline
    SHUBHAM SINGH RAO
    wrote on last edited by
    #1

    Hi there!
    Problem Statement -How to read the dynamic path of USB pendrive connected in qt?

    Requirement - I need to transfer files to/from USB pendrive, so I want to get/read the dynamic path of USB pendrive.

    I am using qt creator 3.2.1 (IDE 5.3.2 ) in raspbian.

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

      Hi,

      How do you identify the device you would like to 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
      0
      • S Offline
        S Offline
        SHUBHAM SINGH RAO
        wrote on last edited by
        #3

        sorry for delayed response. I m trying to use libusb to read address of usb device being connected to my system .
        Am I heading in the right direction?

        aha_1980A 1 Reply Last reply
        0
        • S SHUBHAM SINGH RAO

          sorry for delayed response. I m trying to use libusb to read address of usb device being connected to my system .
          Am I heading in the right direction?

          aha_1980A Offline
          aha_1980A Offline
          aha_1980
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi @SHUBHAM-SINGH-RAO,

          For USB flash drives, QStorageInfo might be the better solution.

          Regards

          Qt has to stay free or it will die.

          1 Reply Last reply
          2

          • Login

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