Qt 5.8 was supposed to come with the optional use ahead of time qtquick compiler, instead it arrived with a sort-of-a-jit-compiler, a feature that\'s enabled by default and cach
Credit to peppe for informing us of the environment variable, but qputenv()
only takes a QByteArray
as the value parameter, so 1
won't work.
The two options that work:
qputenv("QML_DISABLE_DISK_CACHE", "1"); // or
qputenv("QML_DISABLE_DISK_CACHE", "true");
This successful disables the cache and prevents the associated bugs from manifesting.
Add QML_DISABLE_DISK_CACHE
(set to 1) to your environment variables. You should be able to do it inside your application via qputenv -- put it somewhere in main
before loading QML content.