Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to solve module ""QtQuick.Controls" version 2.0 is not installed" on mac

I've been getting the error "module "QtQuick.Controls" version 2.0 is not installed" on Qt Creator 5.6.13, so i upgraded to 5.11.2 and i'm still getting it.

Here's the part causing it:

import QtQuick.Controls 2.0

Thank you for your help.

like image 604
imad kimouche Avatar asked Nov 19 '18 11:11

imad kimouche


2 Answers

use this command to install it on linux

sudo apt install qml-module-qtquick-controls2
like image 78
Fatemeh Karimi Avatar answered Nov 20 '22 04:11

Fatemeh Karimi


Make sure you activated your Qt kit in Projects > Build & Run as follow:

enter image description here

like image 1
Martin Delille Avatar answered Nov 20 '22 04:11

Martin Delille