The QML Disk Cache#
QML caches compiled documents on disk to improve load time.
qmlcache of the system’s cache directory, as denoted by
CacheLocation . Checks are in place to make sure that the cache files are only loaded if all of the following conditions are met:
The Qt version has not changed
The source code in the original file has not changed
The QML debugger is not running
The disk caching behavior can be fine tuned using the following environment variables:
Specifies a custom location where the cache files shall be stored instead of using the default location.
You can also specify
CONFIG += qtquickcompiler in your
.pro file to perform the compilation ahead of time and integrate the resulting byte code directly into your executable. For more information, see Qt Quick Compiler .