Change QML cache directory

  • 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: ```


    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 with

    qputenv("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!

Log in to reply

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