event when I attach a USB pendrive
Unsolved
General and Desktop
-
is there?
-
Hi,
System wise, yes. Qt wise, no.
There are already several threads on that matter on this forum.
Search for them.
-
@vale88
Nope, not something that sends an event.
You can scan for drives though.
https://stackoverflow.com/questions/40035332/how-to-get-path-to-usb-drive-on-linux-in-qt -
Hi @vale88
Sometime ago I used QDeviceWatcher for monitoring USB pendrive hotplug event, you can try
https://github.com/wang-bin/qdevicewatcher
it worked for Windows and Linux, and it very easy to use