Change QML cache directory
Unsolved
QML and Qt Quick
-
wrote on 17 Jan 2018, 16:49 last edited by
Hello,
I would like to change QML cache directory, because of operating system customization (Linux). Now everything is stored in /.cache/<app_name> directory, I can also read the name of the directory with such instruction: ```QStandardPaths::writableLocation(QStandardPaths::CacheLocation)
But how could I move it to another place, for example /var/cache? Is it possible? It seems to be read-only.
Or if it's not possible I would like to disable cache at all, I can do it withqputenv("QML_DISABLE_DISK_CACHE", "true");
Everything is disabled then, but qtshadercache is written anyway, it's not the thing I want to have.
Does anybody know any solution?
Thanks in advance!
1/1