title: Using Qt libraries on VS
body: <p>I am trying to build a C++ project on VS. The project was developed using NetBeans in a Linux machine and now I am using Visual Studio 2017 on Windows.</p>
  
  <p>It wasn't developed using Qt Creatos so the libraries has been added manually with sentences like: </p>
  
  <pre><code>#include &lt;QtCore&gt;
  #include &lt;QCoreApplication&gt;
  #include &lt;QObject&gt;
  #include &lt;QStringList&gt;
  #include &lt;QMap&gt;
  ...
  </code></pre>
  
  <p>This is what I did so far:</p>
  
  <ul>
  <li>Downloaded the last Qt release</li>
  <li>Unpacked everything in C:\Qt</li>
  <li>In VS properties > VC++ Directories > Include directories - I added C:\Qt\Qt5.9.2\5.9.2\msvc2017_64\include and C:\Qt\Qt5.9.2\5.9.2\msvc2017_64\include\QtCore</li>
  <li>In VS properties > VC++ Directories > Library directories - I added C:\Qt\Qt5.9.2\5.9.2\msvc2017_64\lib</li>
  </ul>
  
  <p>However, when I try to <code>#include &lt;QtCore&gt;</code> it seems like VS expects something more:
  <a href="https://imgur.com/a/ruSbi" rel="nofollow noreferrer">https://imgur.com/a/ruSbi</a></p>
  
  <p>but it doesn't compile.</p>
  
  <pre><code>Severity    Code    Description Project File    Line    Suppression State
  Error (active)  E0020   identifier "QEvent" is undefined        c:\Qt\Qt5.9.2\5.9.2\msvc2017_64\include\QtCore\qabstractanimation.h 121 
  Error (active)  E0020   identifier "QEvent" is undefined    c:\Qt\Qt5.9.2\5.9.2\msvc2017_64\include\QtCore\qabstractstate.h 73  
  Error (active)  E0020   identifier "QEvent" is undefined    c:\Qt\Qt5.9.2\5.9.2\msvc2017_64\include\QtCore\qabstractstate.h 74  
  Error (active)  E0020   identifier "QEvent" is undefined    c:\Qt\Qt5.9.2\5.9.2\msvc2017_64\include\QtCore\qabstractstate.h 76  
  Error (active)  E1455   member function declared with 'override' does not override a base class member      c:\Qt\Qt5.9.2\5.9.2\msvc2017_64\include\QtCore\qabstracttransition.h    105 
  Error (active)  E1455   member function declared with 'override' does not override a base class member  c:\Qt\Qt5.9.2\5.9.2\msvc2017_64\include\QtCore\qanimationgroup.h    70  
  Error (active)  E1455   member function declared with 'override' does not override a base class member  c:\Qt\Qt5.9.2\5.9.2\msvc2017_64\include\QtCore\qcoreapplication.h   190 
  Error (active)  E0020   identifier "qint8" is undefined c:\Qt\Qt5.9.2\5.9.2\msvc2017_64\include\QtCore\qdatastream.h    147 
  Error (active)  E0020   identifier "qint8" is undefined c:\Qt\Qt5.9.2\5.9.2\msvc2017_64\include\QtCore\qdatastream.h    163 
  Error (active)  E0260   explicit type is missing ('int' assumed)    c:\Qt\Qt5.9.2\5.9.2\msvc2017_64\include\QtCore\qendian.h    236 
  Error (active)  E0801   "qint8" is not a class or function template name in the current scope   c:\Qt\Qt5.9.2\5.9.2\msvc2017_64\include\QtCore\qendian.h    236 
  Error (active)  E0065   expected a ';'  c:\Qt\Qt5.9.2\5.9.2\msvc2017_64\include\QtCore\qendian.h    236 
  Error (active)  E0020   identifier "qint8" is undefined c:\Qt\Qt5.9.2\5.9.2\msvc2017_64\include\QtCore\qendian.h    236 
  Error (active)  E0020   identifier "QEvent" is undefined    c:\Qt\Qt5.9.2\5.9.2\msvc2017_64\include\QtCore\qeventloop.h 79  
  Error (active)  E1455   member function declared with 'override' does not override a base class member
  ...     
  </code></pre>
  
  <p>So, I guess I'm missing something. I am new with VS, so I would appreciate any help.</p>
  
  <p>Thank you</p>