c++qtmoduleqmlqtcharts

QtCharts module not found even after installing in Qt Maintenance


I know that there're many questions regarding this aspect:

But most of them solve this issue by adding QtChart in Qt Maintenance tool, and I've already done this (and re-checked it).

enter image description here

But when using it:

QT += charts

I still received the Unknown module(s) in Qt error.

enter image description here

I've already asked this question in forum.qt.io, (and as I was asking, this question received no satisfactory answer, so please don't judge me if an answer is found on the forum by the time you answer this question), and some people said that I need to install and build the module first.

If this is the case, how do I do it? If not, what should I do with this? I'm thinking of reinstalling Qt and adding the module immediately when installation occured.

Link to question : https://forum.qt.io/topic/127564/qtcharts-module-not-found-even-after-installing-in-qt-maintenance

Some system info:


Solution

  • It seems you have only installed Qtcharts in the Additional libraries section.I know it's showing 0mb installation which is useless.

    Select the QT section which is below the additional libraries section. Then select the version you have installed. Under the selected version there is a QT charts module, select it and install that.

    enter image description here Then go to your project and run a 'qmake'. Now you can observe all the errors are gone.