After upgrading to 6.9, I can't even package it, and you just randomly adjust the cmake rules without providing a solution. It's a complete waste of time
-
When I call windeployqt.exe, it always reports an error: "qmlimportscanner returned invalid JSON output: illegal value :""
SO how to fix https://doc.qt.io/qt-6/qt-cmake-policy-qtp0004.html ? -
I've found a solution. Find the folder with the same name as your Qml module which defined though qt_add_qml_module in the Debug folder ,copy it to the same-level directory as the exe file you want to publish, and then call windeployqyt.
Hope this helps save some time for those who encounter this baffling error.
-