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. Transfer Files from Qt Creator to External USB Port
Forum Updated to NodeBB v4.3 + New Features

Transfer Files from Qt Creator to External USB Port

Scheduled Pinned Locked Moved Unsolved General and Desktop
15 Posts 6 Posters 7.6k Views 1 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.
  • J.HilkJ J.Hilk

    @Jimit-Rupani
    you can use QStorageInfo::mountedVolumes . Connected USB-Drives should be part of that list.

    foreach (const QStorageInfo &storage, QStorageInfo::mountedVolumes()) {
              if (storage.isValid() && storage.isReady()) {
                  if (!storage.isReadOnly()) {
                      // ...
                  }
              }
          }
    
    J Offline
    J Offline
    Jimit Rupani
    wrote on last edited by
    #6

    @J.Hilk I did and it solved my problem. thank you for the help!!

    jsulmJ 1 Reply Last reply
    1
    • J Jimit Rupani

      @J.Hilk I did and it solved my problem. thank you for the help!!

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

      @Jimit-Rupani Maybe libusb could help you: http://libusb.sourceforge.net/api-1.0/hotplug.html

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

      J 1 Reply Last reply
      0
      • jsulmJ jsulm

        @Jimit-Rupani Maybe libusb could help you: http://libusb.sourceforge.net/api-1.0/hotplug.html

        J Offline
        J Offline
        Jimit Rupani
        wrote on last edited by
        #8

        @jsulm I have already try that all I got is just P.Id and V.id of pen drive. but I am not able to transfer the data from the machine. our project will deploy in a machine and from there it has to transfer data from machine to USB connected to it's port. from above solution, i am able to transfer data from PC to ps's USB port. But it's not working with the device. and thank you for the suggestions.

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

          Hi,

          What are you running on that device of yours ?

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

          J 1 Reply Last reply
          0
          • SGaistS SGaist

            Hi,

            What are you running on that device of yours ?

            J Offline
            J Offline
            Jimit Rupani
            wrote on last edited by
            #10

            @SGaist It's a device from toradex which is using light weight linux. it'a titration device.

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

              What distribution is your "light weight linux" ?

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

              J 1 Reply Last reply
              0
              • SGaistS SGaist

                What distribution is your "light weight linux" ?

                J Offline
                J Offline
                Jimit Rupani
                wrote on last edited by
                #12

                @SGaist yup it's light weight and we don't have console also in that devices Linux.

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

                  What are you using for device handling with your distribution ?

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

                  Akshay SinghA 1 Reply Last reply
                  0
                  • SGaistS SGaist

                    What are you using for device handling with your distribution ?

                    Akshay SinghA Offline
                    Akshay SinghA Offline
                    Akshay Singh
                    wrote on last edited by
                    #14

                    @SGaist sorry i didn't get you?

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

                      What service/library/etc. are you using on your target to handle devices that you connect to it through USB (e.g. udev) ?

                      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

                      • Login

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