QQmlApplicationEngine failed to load component
-
I have build the program and works fine start by qt creator.
In the qt creator build output folder, I ran the windeployqt.exe and copied the MinGW dependences, the program could not start by double click the exe file. Even if I start the app from qt creator, the issue is the same, I compared the difference, and found that:
Before I ran windeployqt and copied the dependence and After:
My envoriment: Windows10 x64, qt creator 5, qt 6.1.3, mingw81_64
Could anyone help me to correct the issue?
-
I have build the program and works fine start by qt creator.
In the qt creator build output folder, I ran the windeployqt.exe and copied the MinGW dependences, the program could not start by double click the exe file. Even if I start the app from qt creator, the issue is the same, I compared the difference, and found that:
Before I ran windeployqt and copied the dependence and After:
My envoriment: Windows10 x64, qt creator 5, qt 6.1.3, mingw81_64
Could anyone help me to correct the issue?
@lzzy_ha
I suggest the following:- delete the build folder completely.
- Build the project new from QtCreator.
- Copy the executable somewhere else
- run windeployqt on the executable
- Do not forget the correct -qmldir argument
- Come back here report success or failure :D