Can QML caching in Qt 5.8 be disabled for a particular project?

前端 未结 2 653
庸人自扰
庸人自扰 2021-02-13 09:07

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

2条回答
  •  我在风中等你
    2021-02-13 09:42

    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.

提交回复
热议问题