Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. module "<anything>" not installed
Forum Updated to NodeBB v4.3 + New Features

module "<anything>" not installed

Scheduled Pinned Locked Moved Solved QML and Qt Quick
4 Posts 2 Posters 2.2k Views 3 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
    flibbo
    wrote on last edited by
    #1

    I am trying to create a widget from a QML file, never done this before so I am still learning. I am using Windows 10 and Visual Studio. As a first simple test I just created a rectangle in the QML file, then loaded it into my C++ subclass of QQuickWidget. The widget is inserted into the application GUI form file I created with Qt designer. I set the source of the QML file (using its qrc URL) and call the show() method in the constructor. That's pretty much it, as it's only a test for now and in the debug configuration it is working - I see the rectangle I specified in the QML file as it should be. However, in the release build it fails and gives me the error message

    module "QtQuick" is not installed

    If I try other objects like a chart, I just get the message "QtCharts" is not installed. This happens with all the QML objects I tried so far. I have added a call of windeployqt as a post-build operation in the visual studio project settings, with the --qmldir "<directory>" option set, where <directory> is the path to the folder which contains my qml file. In the Qt project settings, I have the modules QML and Qt Quick Widgets enabled (otherwise it wouldn't have compiled anyway). The windeployqt call is what I have found using Google, and it seems to have solved the problem for others, but not me. It still won't work in the release configuration at all. The Qt5Qml.dll, Qt5Quick.dll, Qt5QuickWidgets.dll and Qt5Network.dll (not sure why that last one is needed) are all present in the build directory, as they are copied by windeployqt and you'd think those are the needed dependencies, but no dice.

    I am at a loss. I cannot finish this project if this won't work in the release build. Anyone have an idea for me?

    JKSHJ 1 Reply Last reply
    0
    • F Offline
      F Offline
      flibbo
      wrote on last edited by
      #2

      there's no solution to this?

      1 Reply Last reply
      0
      • F flibbo

        I am trying to create a widget from a QML file, never done this before so I am still learning. I am using Windows 10 and Visual Studio. As a first simple test I just created a rectangle in the QML file, then loaded it into my C++ subclass of QQuickWidget. The widget is inserted into the application GUI form file I created with Qt designer. I set the source of the QML file (using its qrc URL) and call the show() method in the constructor. That's pretty much it, as it's only a test for now and in the debug configuration it is working - I see the rectangle I specified in the QML file as it should be. However, in the release build it fails and gives me the error message

        module "QtQuick" is not installed

        If I try other objects like a chart, I just get the message "QtCharts" is not installed. This happens with all the QML objects I tried so far. I have added a call of windeployqt as a post-build operation in the visual studio project settings, with the --qmldir "<directory>" option set, where <directory> is the path to the folder which contains my qml file. In the Qt project settings, I have the modules QML and Qt Quick Widgets enabled (otherwise it wouldn't have compiled anyway). The windeployqt call is what I have found using Google, and it seems to have solved the problem for others, but not me. It still won't work in the release configuration at all. The Qt5Qml.dll, Qt5Quick.dll, Qt5QuickWidgets.dll and Qt5Network.dll (not sure why that last one is needed) are all present in the build directory, as they are copied by windeployqt and you'd think those are the needed dependencies, but no dice.

        I am at a loss. I cannot finish this project if this won't work in the release build. Anyone have an idea for me?

        JKSHJ Offline
        JKSHJ Offline
        JKSH
        Moderators
        wrote on last edited by
        #3

        @flibbo said in module "<anything>" not installed:

        I am at a loss. I cannot finish this project if this won't work in the release build. Anyone have an idea for me?

        windeployqt is not yet perfect; it might include files that you don't need and it might leave out files that you do need.

        Try the Quick and Dirty deployment described here: https://wiki.qt.io/Deploy_an_Application_on_Windows

        Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

        F 1 Reply Last reply
        3
        • JKSHJ JKSH

          @flibbo said in module "<anything>" not installed:

          I am at a loss. I cannot finish this project if this won't work in the release build. Anyone have an idea for me?

          windeployqt is not yet perfect; it might include files that you don't need and it might leave out files that you do need.

          Try the Quick and Dirty deployment described here: https://wiki.qt.io/Deploy_an_Application_on_Windows

          F Offline
          F Offline
          flibbo
          wrote on last edited by
          #4

          @JKSH said in module "<anything>" not installed:

          @flibbo said in module "<anything>" not installed:

          I am at a loss. I cannot finish this project if this won't work in the release build. Anyone have an idea for me?

          windeployqt is not yet perfect; it might include files that you don't need and it might leave out files that you do need.

          Try the Quick and Dirty deployment described here: https://wiki.qt.io/Deploy_an_Application_on_Windows

          It works after manually copying the "QtCharts" and "QtQuick.2" folders. Thank you.

          1 Reply Last reply
          1

          • Login

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