QML Cache Generated Even When QML Compilation is Enabled
-
Hello Qt Community,
I am currently working on a Qt project where I have enabled QML compilation using the qt_add_qml_module function in my CMakeLists.txt to precompile my QML files into the final binary. However, I've noticed that the QML cache files (*.qmlc) are still being produced during runtime in the qmlcache directory, which I did not expect since my understanding was that the QML source would be directly compiled into the binary.
I was under the impression that by using qt_add_qml_module, the QML files would be completely compiled and not need any caching at runtime. Is it expected behavior for the QML cache to be generated even when QML compilation is enabled?
Any insights or recommendations on how to address this would be greatly appreciated.
-
@QtEnjoyer2008 I don't know the answer but I'd be interested in learning that :-)
One suggestion: maybe try on Qt mailing list (
interest
ordevelop
), that is where developers of Qt itself hang out. You are more likely to get an answer directly from the source. And if you do, please link it here :-)