Error : "module "QtQuick.Controls" is not installed"

20,340

Solution 1

You're likely using an old version of Qt. The QtQuick.Controls module was introduced in Qt 5.1:

Solution 2

this command fixed my problem.

sudo apt -y install qml-module-qtquick-controls

Solution 3

Another cause of this 'module "Qt*" is not installed' class of problems on Ubuntu at least is the environment variable LD_LIBRARY_PATH not being set. It should include the path to the lib directory of your Qt installation, e.g.

if [ "x$LD_LIBRARY_PATH" = "x" ]; then
    export LD_LIBRARY_PATH=/home/username/Qt5.4.1/5.4/gcc_64/lib
else
    export LD_LIBRARY_PATH=/home/username/Qt5.4.1/5.4/gcc_64/lib:$LD_LIBRARY_PATH
fi
Share:
20,340
Jino
Author by

Jino

Updated on July 25, 2020

Comments

  • Jino
    Jino almost 4 years

    Getting this error while running my program. I searched the Internet to find QtQuick.Controls but couldn't get any resolution.
    How can I install this?