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 23 Nov 2019, 09:53 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
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 23 Nov 2019, 20:06 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 28 Nov 2019, 05:47 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?

        A 1 Reply Last reply 28 Nov 2019, 08:29
        0
        • S SHUBHAM SINGH RAO
          28 Nov 2019, 05:47

          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?

          A Offline
          A Offline
          aha_1980
          Lifetime Qt Champion
          wrote on 28 Nov 2019, 08:29 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

          1/4

          23 Nov 2019, 09:53

          • Login

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