I have a Qt program that needs to save and load some files to persist some data between runs of the program. How do I locate the appropriate OS-specific directory in which to store these files? Does Qt provide an API for this?

(The SDL library has for example [SDL\_GetBasePath](https://wiki.libsdl.org/SDL_GetBasePath) and [SDL\_GetPrefPath](https://wiki.libsdl.org/SDL_GetPrefPath). Does Qt offer a similar API?)