Various module "QtQuick" is not installed



  • Hi,

    I'm facing with a problem that I can't resolve. When i run my desktop application in the output this is what I see:

    qrc:/qml/qml/MapTrack.qml:5:1: module "QtPositioning" is not installed
    qrc:/qml/qml/MapTrack.qml:1:1: module "QtQuick" is not installed
    qrc:/qml/qml/MapTrack.qml:3:1: module "QtQuick.Window" is not installed
    qrc:/qml/qml/MapTrack.qml:4:1: module "QtLocation" is not installed
    qrc:/qml/qml/MapTrack.qml:2:1: module "QtQuick.Controls" is not installed
    qrc:/qml/qml/MapTrack.qml:5:1: module "QtPositioning" is not installed
    qrc:/qml/qml/MapTrack.qml:1:1: module "QtQuick" is not installed
    qrc:/qml/qml/MapTrack.qml:3:1: module "QtQuick.Window" is not installed
    qrc:/qml/qml/MapTrack.qml:4:1: module "QtLocation" is not installed
    qrc:/qml/qml/MapTrack.qml:2:1: module "QtQuick.Controls" is not installed
    qrc:/qml/qml/MapTrack.qml:5:1: module "QtPositioning" is not installed
    qrc:/qml/qml/MapTrack.qml:1:1: module "QtQuick" is not installed
    qrc:/qml/qml/MapTrack.qml:3:1: module "QtQuick.Window" is not installed
    qrc:/qml/qml/MapTrack.qml:4:1: module "QtLocation" is not installed
    qrc:/qml/qml/MapTrack.qml:2:1: module "QtQuick.Controls" is not installed
    qrc:/qml/qml/MapTrack.qml:5:1: module "QtPositioning" is not installed
    qrc:/qml/qml/MapTrack.qml:1:1: module "QtQuick" is not installed
    qrc:/qml/qml/MapTrack.qml:3:1: module "QtQuick.Window" is not installed
    qrc:/qml/qml/MapTrack.qml:4:1: module "QtLocation" is not installed
    qrc:/qml/qml/MapTrack.qml:2:1: module "QtQuick.Controls" is not installed
    qrc:/qml/qml/MapTrack.qml:5:1: module "QtPositioning" is not installed
    qrc:/qml/qml/MapTrack.qml:1:1: module "QtQuick" is not installed
    qrc:/qml/qml/MapTrack.qml:3:1: module "QtQuick.Window" is not installed
    qrc:/qml/qml/MapTrack.qml:4:1: module "QtLocation" is not installed
    qrc:/qml/qml/MapTrack.qml:2:1: module "QtQuick.Controls" is not installed
    

    My application is a c++ based application with one qml plugin that has to display a map.
    Of course after this error the map is not shown.
    Basically everything worked for some time, I have done some updates and now it display me this.

    The interesting things is that all the QML example with the map works well, without problems.
    This is what I include in my .Pro file:

    QT       += core gui quick sql serialport charts qml
    

    I found on the net that I should simply do a clean and a rebuild, but after that it still shows me this error.
    I'm using QT 5.9.1 on windows, maybe do I have to update to QT 5.10?

    Thanks in advance.


  • Moderators

    @davidesalvetti
    those errors appear when you start the application from within QtCreator?
    If you have deployed your application already, you also have to deploy the QML plugins from the qml folder (from the Qt dir)
    But make sure you also keep the folder structure as it is.



  • @raven-worx Thanks for your answer.

    Anyway no, I'm starting the application from QtCreator, that's the strange thing. Every example that uses QtLocation and QtPositioning and all the other qml libraries works well.

    The only thing I've thought it would be was a clean rebuild but it wasn't enough.



  • @raven-worx I get it works. I have to delete the folder "build-xxxxx-Desktop_Qt_5_9_1_MinGW_32bit-Debug" and simply Run my program. Now it seems that it finds the qml libraries right.

    Anyway does somebody have an answer for this behaviour? Is possible that it happens when I deploy my program?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.