how can i detect USB flash drive
Unsolved
QML and Qt Quick
-
@manga you can use libusb in your project to detect new usb drives
https://github.com/libusb/libusbOn the other hand, you can make your program check all the main directories untill a new dir appear.
And use QDir::entryList with an mp3 filter passed to QStringlist
-
@Ronel_qtmaster
can i use QStorageInfo instead to do the same functionality? -
@manga Hi,
AFAIK, QStorageInfo is for mounted volumes which is not what you have currently.
You might want to consider KDE's Solid framework.