5

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!!

jww
  • 97,681
  • 90
  • 411
  • 885
Ale
  • 285
  • 2
  • 7
  • 18

1 Answers1

0

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.

Cody Gray - on strike
  • 239,200
  • 50
  • 490
  • 574
ebraley
  • 206
  • 1
  • 9