QStorageInfo to detect USB drives
-
Is there a way, to detect attached USB drives and get the path to them?
It would be nice, if i could do it in a cross platform way. -
Hi,
Do you mean detecting new plugged devices or analyzing what is currently available ?
-
I tought about detecting the existing ones, but to get notifications about plug/remove would be also helpful.
-
For these kind of notifications there's KDE's Solid library that IIRC is a Tier1 library which means it only depends on Qt.
-
Is there any description, how to use it with Qt Creator and VS2013?
-
You can use it like any other library, first compile it and then update you project like the usual
-
I just posted some code using a timer and QDir::drives()...tested on Windows 7: link