Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install <QtCharts> on windows

I have a hard time getting QtCharts to work on my computer. I think I am missing the concept. I have Qt 5.8 installed on my computer. I am using visual studio for all my development. After googling for a while I have noticed people say that you need to import the QtChart module but I do not understand:

1) Why QtCharts is not a part of my Qt installation in the first place?

2) And if I do have to install it, how do I do it on windows with VS 2017?

If someone could please clear this up for me I would really appreciate it.

Thank you.

like image 715
Illia Avatar asked Mar 17 '17 21:03

Illia


People also ask

How do I install QT offline?

Offline installer link. First you should download and install the qt creator and then download and install the qt source package, if you do not want to use the qt-creator then you do not have to dowload that.


1 Answers

The question is old but I had the same question. To install the QtCharts Module (or any other module) here is what you want to do:

  1. go to your Qt Installation Folder, find and open the MaintenanceTool.exe
  2. skip the first page
  3. press "settings" and open the "repository" tab
  4. select "user defined repositories" and press "add"
  5. now in the new line check the "use" Checkbox and copy an URL to a Qt repo (see this stackoverflow question No default repositories in Qt Maintenance Tool) into the "Repository" column (leave the rest blank) entering a suitable repo Qt URL
  6. press "ok"
  7. select "add or remove component" and press next
  8. now under Qt->Qt 5.8 you see all installed addons, check the boxes you Need enter image description here
like image 54
Gino Gulamhussene Avatar answered Nov 14 '22 21:11

Gino Gulamhussene