I'm look for a way to safely remove my USB key from my Qt 5.2 application but I can't find any Qt module to do that.
Is their a way to do it or do I have to hardcode it ?
I'm look for a way to safely remove my USB key from my Qt 5.2 application but I can't find any Qt module to do that.
Is their a way to do it or do I have to hardcode it ?
Copyright © 2021 Jogjafile Inc.
If you mean unmounting your usb device by removal, then there is no cross-platform solution for this. Perhaps there could be added something in the QtSystems module, however the problem is that this would require admin permission or some tricks, e.g. setuid or caps on Linux and so on.
You could do something along these lines to achieve this feature for now on your side: