Ubuntu QT install qt quick controls 2.1

14,057

As you can see from the "Versions" section of the Qt Quick Controls 2 documentation, you have to import version 2.0 of Quick Controls if you're using Qt 5.7, not version 2.1 of Quick Controls.

Alternatively, you could update to the latest version of Qt (5.9), and then you can use Quick Controls 2.1.

Share:
14,057
Ale
Author by

Ale

Updated on June 11, 2022

Comments

  • Ale
    Ale almost 2 years

    I have a Qt 5.7.0 application. When I run my application it does not start and there is a terminal message saying:

    QQmlApplicationEngine failed to load component
    qrc:/main.qml:2 module "QtQuick.Controls" version 2.1 is not installed
    

    How can I solve this issue?

    Thanks!!