From 10:00 CET Friday 22nd November we will adjust how the server works to deal with some recently reported problems. Therefore there may be a load problem, if you experience more problems than usual trying to access the forum then please PM AndyS or any of the moderators so they can inform me.


[SOLVED] - Error loading qml from c++ - module "QtQuick.Controls" is not installed



  • Hi, I have a qml file which imports QtQuick.Controls and works fine when run in Qt creator. But when i am trying to embed this using a c++ plugin (similar to the Loader qml element), I get the error:

    module "QtQuick.Controls" is not installed

    This is how i am loading the component:

    m_engine = new QQmlEngine(this);
    m_engine->setImportPathList(QStringList());
    m_component = new QQmlComponent(m_engine, this);
    m_component->loadUrl(m_source);

    where m_source is the qml file which needs to be loaded.
    Does anyone know what the problem is. QtQuick.Controls works fine otherwise.
    Thanks,
    Rohit



  • Fixed the build path to get rid of this error. The new loader c++ component needed access to quick controls.


Log in to reply