Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Get size of USB mass storage
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
I forgot to mention that Boost isn't a choice for me because it incompatible with MinGW which I use it,
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
[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
Are you really missing qserviceclientcredentials_p.h in your sources ?