Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. QML module not found (QtQuick and content)
Forum Updated to NodeBB v4.3 + New Features

QML module not found (QtQuick and content)

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
9 Posts 3 Posters 1.8k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    FredJupiter
    wrote on 22 Oct 2023, 16:19 last edited by
    #1

    Hi Everyone,

    I've successfully installed Qt version 6.4.2 on my Linux Kubuntu23 6.5.0-9-generic and compiled Qt Creator 13.0.0-beta1 (12.0.82). I've created a new Qt Quick Application which is currently empy expect the default generated files.

    The Qt Creator is complaining about QML module not found (QtQuick and content)
    f39d9c51-7bfc-4b19-88f7-5aef379004d3-grafik.png

    I've searched around this forum but it looks like there is no solution for this issue. The path is correct as far as I can say....

    What can I do?
    Thanks Fred

    J 1 Reply Last reply 22 Oct 2023, 19:40
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 22 Oct 2023, 18:46 last edited by
      #2

      Hi and welcome to devnet,

      Based on the error message, you installed your distribution provided Qt. Did you install all the development packages ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • F FredJupiter
        22 Oct 2023, 16:19

        Hi Everyone,

        I've successfully installed Qt version 6.4.2 on my Linux Kubuntu23 6.5.0-9-generic and compiled Qt Creator 13.0.0-beta1 (12.0.82). I've created a new Qt Quick Application which is currently empy expect the default generated files.

        The Qt Creator is complaining about QML module not found (QtQuick and content)
        f39d9c51-7bfc-4b19-88f7-5aef379004d3-grafik.png

        I've searched around this forum but it looks like there is no solution for this issue. The path is correct as far as I can say....

        What can I do?
        Thanks Fred

        J Offline
        J Offline
        JoeCFD
        wrote on 22 Oct 2023, 19:40 last edited by JoeCFD
        #3
        This post is deleted!
        1 Reply Last reply
        0
        • F Offline
          F Offline
          FredJupiter
          wrote on 23 Oct 2023, 09:05 last edited by FredJupiter
          #4

          @SGaist Thanks! The development packages were missing, so I'm now one step further. I've still the issue with 'content', which is a folder from my test project....In App.qml of content subfolder is the import of the testApp is also failing. I've added the current project folder with QML_IMPORT_PATH to the project settings but without luck. What I'm missing here?

          1 Reply Last reply
          0
          • S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 24 Oct 2023, 19:46 last edited by
            #5

            Based on what I have read recently, it's highly recommended to move to CMake for QML based projects. Qt 6 has brought new improvements and features that are not supported by qmake.

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            F 1 Reply Last reply 28 Oct 2023, 09:15
            0
            • S SGaist
              24 Oct 2023, 19:46

              Based on what I have read recently, it's highly recommended to move to CMake for QML based projects. Qt 6 has brought new improvements and features that are not supported by qmake.

              F Offline
              F Offline
              FredJupiter
              wrote on 28 Oct 2023, 09:15 last edited by
              #6

              @SGaist I'm currently using CMake and only the generated CMake files by the QtCreator.

              S 1 Reply Last reply 28 Oct 2023, 19:48
              0
              • F FredJupiter
                28 Oct 2023, 09:15

                @SGaist I'm currently using CMake and only the generated CMake files by the QtCreator.

                S Offline
                S Offline
                SGaist
                Lifetime Qt Champion
                wrote on 28 Oct 2023, 19:48 last edited by
                #7

                Can you show the content of the CMakeLists.txt file you got ?

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                F 1 Reply Last reply 9 Nov 2023, 10:18
                0
                • S SGaist
                  28 Oct 2023, 19:48

                  Can you show the content of the CMakeLists.txt file you got ?

                  F Offline
                  F Offline
                  FredJupiter
                  wrote on 9 Nov 2023, 10:18 last edited by
                  #8

                  @SGaist Sure

                  cmake_minimum_required(VERSION 3.21.1)
                  
                  option(LINK_INSIGHT "Link Qt Insight Tracker library" ON)
                  option(BUILD_QDS_COMPONENTS "Build design studio components" ON)
                  
                  project(testAppApp LANGUAGES CXX)
                  
                  set(CMAKE_AUTOMOC ON)
                  
                  find_package(Qt6 6.2 REQUIRED COMPONENTS Core Gui Qml Quick)
                  
                  if (Qt6_VERSION VERSION_GREATER_EQUAL 6.3)
                      qt_standard_project_setup()
                  endif()
                  
                  qt_add_executable(testAppApp src/main.cpp
                      src/theorb.h src/theorb.cpp)
                  
                  qt_add_resources(testAppApp "configuration"
                      PREFIX "/"
                      FILES
                          qtquickcontrols2.conf
                  )
                  
                  target_link_libraries(testAppApp PRIVATE
                      Qt6::Core
                      Qt6::Gui
                      Qt6::Qml
                      Qt6::Quick
                  )
                  
                  if (BUILD_QDS_COMPONENTS)
                      include(${CMAKE_CURRENT_SOURCE_DIR}/qmlcomponents)
                  endif()
                  
                  include(${CMAKE_CURRENT_SOURCE_DIR}/qmlmodules)
                  
                  if (LINK_INSIGHT)
                      include(${CMAKE_CURRENT_SOURCE_DIR}/insight)
                  endif ()
                  
                  include(GNUInstallDirs)
                  install(TARGETS testAppApp
                      BUNDLE DESTINATION .
                      LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
                      RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
                  )
                  
                  
                  S 1 Reply Last reply 12 Nov 2023, 20:44
                  0
                  • F FredJupiter
                    9 Nov 2023, 10:18

                    @SGaist Sure

                    cmake_minimum_required(VERSION 3.21.1)
                    
                    option(LINK_INSIGHT "Link Qt Insight Tracker library" ON)
                    option(BUILD_QDS_COMPONENTS "Build design studio components" ON)
                    
                    project(testAppApp LANGUAGES CXX)
                    
                    set(CMAKE_AUTOMOC ON)
                    
                    find_package(Qt6 6.2 REQUIRED COMPONENTS Core Gui Qml Quick)
                    
                    if (Qt6_VERSION VERSION_GREATER_EQUAL 6.3)
                        qt_standard_project_setup()
                    endif()
                    
                    qt_add_executable(testAppApp src/main.cpp
                        src/theorb.h src/theorb.cpp)
                    
                    qt_add_resources(testAppApp "configuration"
                        PREFIX "/"
                        FILES
                            qtquickcontrols2.conf
                    )
                    
                    target_link_libraries(testAppApp PRIVATE
                        Qt6::Core
                        Qt6::Gui
                        Qt6::Qml
                        Qt6::Quick
                    )
                    
                    if (BUILD_QDS_COMPONENTS)
                        include(${CMAKE_CURRENT_SOURCE_DIR}/qmlcomponents)
                    endif()
                    
                    include(${CMAKE_CURRENT_SOURCE_DIR}/qmlmodules)
                    
                    if (LINK_INSIGHT)
                        include(${CMAKE_CURRENT_SOURCE_DIR}/insight)
                    endif ()
                    
                    include(GNUInstallDirs)
                    install(TARGETS testAppApp
                        BUNDLE DESTINATION .
                        LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
                        RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
                    )
                    
                    
                    S Offline
                    S Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on 12 Nov 2023, 20:44 last edited by
                    #9

                    Is it a project generated by Qt Creator ?

                    Interested in AI ? www.idiap.ch
                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                    1 Reply Last reply
                    0

                    • Login

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • Users
                    • Groups
                    • Search
                    • Get Qt Extensions
                    • Unsolved