Well Not really, actually file system is so different on every platform so it is really hard.
Unfortunately there is No API in Qt which can do it for you,I am sorry.
You can have your own platform independent implementation using #ifdef after all Qt is all about #ifdef.
But you will have to do it for every platform you want, and you need to know the native api of all those every platform to hide the file. Best of luck