Project ERROR: Unknown module(s) in QT: charts
-
Hi,
I'm currently working through "Mastering QT5" and chapter 2 uses charts. When I try and add charts to my project, and build, I get the following error message:
"Project ERROR: Unknown module(s) in QT: charts"
I've used the "Qt Maintenance Tool", checked QT Charts, and tried to install it from there. When I look in the InstallationLog.txt file it has the following:
[57040] Installation space required: "0.00 bytes" Temporary space required: "0.00 bytes" Local repository size: "0.00 bytes"
When I try and install charts it seems to think its size is zero but when I reopen the "Qt Maintenance Tool" the QT Charts option is now checked.
Even after I did the installation my project wasn't building so I restarted the project anew and it also didn't build (with the same error message).
Can anyone help me out where I'm going wrong? Surely this should be very basic and should just work? I'm using the open source version of QT Creator (v6.0.1, newest version) on Windows 10.
-
Hi and welcome to devnet,
I am currently unsure but isn't the module provided as sources and you should build it for the Qt version you are using ?
-
Look for the sources in your Qt installation folder.
-
In "C:\Qt\Tools\QtDesignStudio\bin" there is QT6Charts.dll and Qt6ChartsQml.dll. QTCreator doesn't seem to be picking these up though.
Is there a difference between the free version of QT and the fully licensed version? Does the free version have limitations where it wouldn't support charts? At my work I've been told that QTCreator isn't great (I'm being polite) and they use QT libraries within MS Visual Studio instead. Is QTCreator a usable product or am I better off just using the libraries in another IDE?
-
-
There is no relation between the dlls you can find in the Tools folder and the Qt version you use to build your application.
As I suggested you should search for the sources of the module.
Which version(s) of Qt did you install ?
Which exact version of Qt are you using to build your application ?As for the comment on Qt Creator, lots of people are using it daily and are happy about it others don't. Make your opinion on it yourself.
-
@Grimface said in Project ERROR: Unknown module(s) in QT: charts:
QT Creator (v6.0.1, newest version) on Windows 10.
Based on QT 6.22 (MSVC 2019, 64 bit)
Built on Dec 15 20
From revision ad505aad59According to the documentation I shouldn't need to build it as this is a newer version. I don't see any sources for the module.
-
Qt Creator (and for that matter the version of Qt used to build it) has nothing to do with regard to version of Qt you are using to build your application.
-
@SGaist I have to move on as this is getting me no-where. If I ever need a chart I'll use a third party one. This should work in QT Creator (the latest one that I downloaded recently), it should be a simple case of checking a box, but it just doesn't work....possibly a bug in the software (...or a feature).
-
Hi @Grimface, Maintenance Tool exists to make things easy without any need to compile Qt from source. That's the way I've always done it and it should be an easy experience.
Can I check which checkbox you ticked?
There's one at the top under Additional Libraries at top level
and one within Additional Libraries within the Qt build you're installing.
I haven't used QtCharts myself, but I use QtMultimedia which is another additional library and I've had no problem installing that by ticking the latter one only.