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

qrc:/main.qml: plugin cannot be loaded for module "QtQuick.Controls": Cannot protect module QtQuick.Controls 2 as it was never registered



  • Hi All,

    I am facing a different issue after including the statement “import QtQuick.Controls 2.x” in main.qml . The below error is coming while running
    qrc:/main.qml: plugin cannot be loaded for module "QtQuick.Controls": Cannot protect module QtQuick.Controls 2 as it was never registered
    c8b3f0c0-09f4-4244-b758-a9eb134aded3-image.png

    Attaching Qt related installation files for your reference:
    Bin folder (/usr/local/Qt-5.15.1/bin)
    1dc3de35-7cd8-46e3-8290-ed4d84c75cc9-image.png

    Qml folder (/usr/local/Qt-5.15.1/qml/QtQuick.2)
    d285aaae-d3ad-4c6e-9ea3-860b08d59c45-image.png

    Can anyone please suggest or can give some inputs?



  • This post is deleted!


  • @Praveen-Illa
    I have found the solution. The solution is reconfigured the command line with QtGraphicalEffects and rebuild the complete Qt sources. Qt Quick uses QtGraphicalEffects module.

    Thanks to all for supporting


Log in to reply