Can I hide any file using Qt

  • I mean is there any platform independent way of doing this using Qt api.

  • 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.

  • What's "hide a file" supposed to mean exactly?

  • You can implement you own for the platforms you want to support. Change attributes on windows, rename files on linux, ...

  • 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

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.