PDA

View Full Version : USB Device detection



eisenmann97
25th August 2016, 11:53
Hi, i'm learning QT at the moment, I already programmed a lot of Java but now I want to try something new.
I want a programm which starts waits until a usb device is plugged in and then delets all the data on the device.
I found a lot of posts which should do the same but most of them are not working with a Win32 System or QT5 because lot of old functions are not available anymore in QT5.
I hope somebody can help me and explain exactly what to do or load up a .zip with code that works.
Thanks a lot :)

anda_skoa
25th August 2016, 12:41
You can likel use Solid to detect the device
https://inqlude.org/libraries/solid.html

Cheers,
_

eisenmann97
25th August 2016, 13:14
Thanks for the quick answer but I claim that solid is only for Linux systems and i am working with Windows.

anda_skoa
25th August 2016, 14:41
The documentation says "Linux, MacOSX and Windows": https://api.kde.org/frameworks/solid/html/index.html

Cheers,
_