Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

module "<anything>" not installed



  • 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?



  • there's no solution to this?


  • Moderators

    @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



  • @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.


Log in to reply