Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Change QML cache directory
Forum Update on Monday, May 27th 2025

Change QML cache directory

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 1.3k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Polarisru
    wrote on 17 Jan 2018, 16:49 last edited by
    #1

    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 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!

    1 Reply Last reply
    0

    1/1

    17 Jan 2018, 16:49

    • Login

    • Login or register to search.
    1 out of 1
    • First post
      1/1
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved