How to install a missing Qt module?

How can I install/add a missing Qt Module under Mac OS? I have Qt Creator installed and working, but a new project gives the following error:

Project ERROR: Unknown module(s) in QT: charts

Can I just download and install the missing module or do I have to reinstall Qt with the missing module selected? Thanks


Solution 1:

Can I just download and install the missing module or do I have to reinstall Qt with the missing module selected?

You don't have to reinstall Qt. You can just use Qt Maintenance tool to to add components and to update or remove installed components.

  1. Launch Qt Maintenance Tool and choose Add or remove components. screenshot(1) screenshot(2)
  2. Add a tick to the Qt Charts component in your currently installed version of Qt. screenshot(3)
  3. Click the update button and wait for the process to complete. screenshot(4)