Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
Qt Creator 8.0.1
Description
Hi, I created some modules, but QtCreator always shows a message error. QML module not found
I try to declare the environment variables QML_IMPORT_PATH, but nothing happens.
What is the right way to make QtCreator happy?
Works fine, everything compiles but is sometimes is annoying.
My directory structure
myProject ├── app │ ├── cmake │ ├── MyModules │ │ ├── Base │ │ ├── Browser │ │ ├── Components │ │ ├── Fonts │ │ ├── Icons │ │ ├── Images │ │ ├── Inspector │ │ ├── Login │ │ ├── Pages │ │ ├── Preferences │ │ ├── Shaders │ │ ├── Splashscreen │ │ └── Theme │ ├── src │ └── translations ├── docs ├── engine
list(APPEND QML_DIRS "${CMAKE_SOURCE_DIR}/app/") list(APPEND QML_DIRS "${CMAKE_SOURCE_DIR}/app/MyModules/") list(REMOVE_DUPLICATES QML_DIRS) set(QML_IMPORT_PATH ${QML_DIRS} CACHE STRING "Qt Creator extra qml import paths" FORCE ) set(QML2_IMPORT_PATH ${QML_DIRS} CACHE STRING "Qt Creator extra qml import paths" FORCE ) message(STATUS "QML_IMPORT_PATH : ${QML_IMPORT_PATH}")