title: How to include the QtCharts library in Qt Creator 4.2.0 (Community)
body: <p><a href="https://i.stack.imgur.com/PQi4Q.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PQi4Q.png" alt="enter image description here"></a></p>
  
  <p>I tried to include the QtCharts but i have an error when i include the library, this is the error:</p>
  
  <blockquote>
    <p>Project ERROR: Unknown module(s) in QT: charts.</p>
  </blockquote>
  
  <p>I have included the QT += charts in the *.pro file like this:</p>
  
  <pre><code>QT += charts
  greaterThan(QT_MAJOR_VERSION, 4): QT += charts
  
  SOURCES += \
      source.cpp
  </code></pre>
  
  <p>But it doesn't work. Please help me.</p>