how to fix QT Project ERROR: Unknown module(s) in QT: charts
-
@swansorter said in how to fix QT Project ERROR: Unknown module(s) in QT: charts:
but if run old project not working
Do you have more than one Qt version installed? Make sure you use the Qt version where Qt Charts is installed.
-
@jsulm I checked it same version only
-
@swansorter Then do a clean rebuild of your old project: delete build folder run qmake and build.
I don't see a reason why it should not work with one project but another one it does (if you really use same Qt version). -
@jsulm not working even after the clean and rebuild
-
@swansorter said in how to fix QT Project ERROR: Unknown module(s) in QT: charts:
not working even after the clean and rebuild
This was not what @jsulm asks you.
You have to use the right QChar version.
You cannot use QChart build for Qt 5.12 with Qt 5.10 for example. -
Hi,
Are you doing that from the command line or Qt Creator ?
If the former, are you using the full path the to qmake executable matching the Qt version with the charts module installed ?
If the later, did you double check that you are using the Kit using the Qt version with the charts module installed ? -
how to check previous qt version of the project
-
@KroMignon i forgot previous version of qt which used to build the project
but now i am using5.9.1 gcc 64 bit -
@SGaist from qt creator
-
@swansorter said in how to fix QT Project ERROR: Unknown module(s) in QT: charts:
how to check previous qt version of the project
There is no need for that. Simply make sure you use Qt version (in QtCreator check Kit you're using) which has Qt Charts. So, please make sure you use the exact same Kit for old project as you use for the new project. You can post a screen-shot of your Kits tabs in QtCreator settings.
-
@jsulm thank you sir
13/14