Application failed to find basic Qt Quick modules using 6.5
Unsolved
QML and Qt Quick
-
As of now we are using Qt 6.3 (conan) to build our application .
I am trying to build our application with Qt6.5 version(conan). Compilation was fine and while running the app I see that QML modules were not found error
QQmlApplicationEngine failed to load component qrc:/qml/main.qml:7:1: module "QtQuick.Window" is not installed qrc:/qml/main.qml:5:1: module "QtQuick.Layouts" is not installed ...
When I print out the QML import directories I see this.
"qrc:/imports" "qrc:/qml" "C:/Users/arun.pk/Workspace/xApp/build65/app/Release" "qrc:/qt-project.org/imports" "C:/Users/arun.pk/Workspace/xApp/build65/app/Release/res/archdatadir/qml"
I can clearly see that the last entry is wrong, which should be pointing to the
C:/.conan/3e66eddc/1/res/archdatadir/qml
It was working fine with Qt6.3 from conan until now....and if I add the path explicitly to QML engine, I can launch the app 🤷♂️
qmlEngine.addImportPath("C:/.conan/3e66eddc/1/res/archdatadir/qml");
On mac I had no issues and was able to compile and launch app.
has anyone experienced this issue or any hint on how to fix it?