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. Get size of USB mass storage
QtWS25 Last Chance

Get size of USB mass storage

Scheduled Pinned Locked Moved General and Desktop
5 Posts 2 Posters 2.0k 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.
  • M Offline
    M Offline
    mbnoimi
    wrote on last edited by
    #1

    Hi,

    I want to get the size of list of USB mass storage drives to be able to copy a large file. How can I do it?

    I googled a lot and found 4 ways may you please help me to use one of them?

    Using "QSystemStorageInfo":http://developer.nokia.com/community/wiki/Get_Storage_information_using_Qt: It depends on QtMobility which I think it's a deprecated project (I'm using Qt5) and I don't know how to use it in my Qt projects.

    Using "Qt System Info":https://qt.gitorious.org/qt/qtsystems: I couldn't know how to add it to my project and I'm not sure exactly if it fits my need because I couldn't find any wiki page about it (some threads here talked about it)

    Using C library such as "libusb":http://sourceforge.net/projects/libusb/: I've to encapsulate this kind of libraries because dealing with C codes is very ugly so I prefer to get a Qt friendly solution before diving deep with old dogs of coding.

    Using nasty Windows API: This is the last choice for me and I really hate it but I may use it in case I couldn't find any of the above solutions.

    NOTE: I using Windows 7 and 8

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mbnoimi
      wrote on last edited by
      #2

      I forgot to mention that Boost isn't a choice for me because it incompatible with MinGW which I use it,

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

        Hi,

        Option number 2: clone, qmake, make, sudo make install and use like any other Qt module

        You can have a look the qml-storageinfo example

        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
        • M Offline
          M Offline
          mbnoimi
          wrote on last edited by
          #4

          [quote author="SGaist" date="1405544764"]
          Option number 2: clone, qmake, make, sudo make install and use like any other Qt module[/quote]

          Thanks, I mentioend above that I'm using Windows. Any way I failed to build it... below the build log
          http://pastebin.com/Q3KN5A9j

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

            Are you really missing qserviceclientcredentials_p.h in your sources ?

            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