Assuming you mean on Windows: you will have to use the Windows API and deal with all the restrictions imposed by Vista and later versions. For older Windows see:
https://support.microsoft.com/en-us/kb/100027
I am fairly sure you cannot achieve this with only Qt QIODevice access.
Bookmarks