module "QtQuick" is not installed



  • I'm trying to integrate my qml+three.js application with qwidget application.
    I included qml.qrc from qml project , added into qwidget app .pro file next:

    QT += qml quick
    QT += quickwidgets
    

    Then i did next:

    ui->quickWidget->setSource(QUrl(QStringLiteral("qrc:/main.qml")));
    

    but qml did not load and there are these errors:

    qrc:/main.qml:1 module "QtQuick" is not installed
    qrc:/main.qml:2 module "QtCanvas3D" is not installed
    qrc:/main.qml:3 module "QtQuick.Window" is not installed
    qrc:/main.qml:4 module "QtQuick.Controls" is not installed
    qrc:/main.qml:1 module "QtQuick" is not installed
    qrc:/main.qml:2 module "QtCanvas3D" is not installed
    qrc:/main.qml:3 module "QtQuick.Window" is not installed
    qrc:/main.qml:4 module "QtQuick.Controls" is not installed
    qrc:/main.qml:1 module "QtQuick" is not installed
    qrc:/main.qml:2 module "QtCanvas3D" is not installed
    qrc:/main.qml:3 module "QtQuick.Window" is not installed
    qrc:/main.qml:4 module "QtQuick.Controls" is not installed
    qrc:/main.qml:1 module "QtQuick" is not installed
    qrc:/main.qml:2 module "QtCanvas3D" is not installed
    qrc:/main.qml:3 module "QtQuick.Window" is not installed
    qrc:/main.qml:4 module "QtQuick.Controls" is not installed
    

    What i did wrong?

    OS: win7
    Qt version : 5.7

    UPD: it works in debug mode, but don't work in release. why?


Log in to reply
 

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