Target: In our embedded Linux system, we want to use Qt to detect the insertion of a USB storage device, to inform the system when the USB storage device is plugged in or out, then we can mount its file system. Later we can access the files on the USB storage device.
I searched a little, it seems there are two solutions: libusb and dbus. But I still don't know how to use it. Does anyone have some examples?