Daily Latest Tech Update

QML Module Not Found Fix

  • Share

I have an error complaining about QML Module not found when i want to build a Qt application.

QML Module not found:Import paths:for qmake projects use the QML_IMPORT_PATH to add import paths.for qmlproject projects, use the importPaths property to add import paths.

Here are some workaround that you can try to resolve it.

Do a project-clean

From within QtCreator, do a “project-clean”, and then rebuild. The module will be found. I managed to resolve it after some effort, the “clean” and rebuild worked.

These seems caused by an “incomplete-dependency-checking” during the build process to “understand” that the main.cpp needed to be rebuilt, which would then expose the qmlRegisterType() so that it can be found within the main.qml.

  • Share

Leave a Reply

Your email address will not be published. Required fields are marked *