Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-28216

QML module not found

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • Qt Creator 8.0.1
    • Quick / QML Support
    • None
    • Linux/X11

    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}")
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qtqmlteam Qt Qml Team User
            andreagenor Andre Agenor Mendes da Luz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes