title: Why doesn't Qt recognize my header file? cannot open include file No such file or directory
body: <p>I have the below in my .pro file and I have files that <code>#include "headerhere".</code> For example:  <code>#include "StdAfx.h"</code>. However I'm getting an </p>
  
  <blockquote>
    <p>error Cannot open include file: 'StdAfx.h': No such file or directory. </p>
  </blockquote>
  
  <p>I get the same error whether I use <code>#include "StdAfx.h"</code> or <code>#include "Shared/StdAfx.h"</code>. This is extremely frustrating and I can't do any actual work unless Qt starts recognizing my headers. I've found online no solution for this. What is going on?</p>
  
  <p>.pro file has:</p>
  
  <pre><code>HEADERS  += ibproject.h \
  Shared/StdAfx.h \
  Shared/TwsSocketClientErrors.h \
  Shared/TagValue.h \
  Shared/shared_ptr.h \
  Shared/ScannerSubscription.h \
  Shared/OrderState.h \
  Shared/Order.h \
  Shared/IBString.h \
  Shared/HScrollListBox.h \
  Shared/Execution.h \
  Shared/EWrapper.h \
  Shared/EClientSocketBaseImpl.h \
  Shared/EClientSocketBase.h \
  Shared/EClient.h \
  Shared/Contract.h \
  Shared/CommonDefs.h \
  Shared/CommissionReport.h \
  SocketClient/src/EClientSocket.h
  ewrappersubclass.h 
  
  INCLUDEPATH += $$PWD/SocketClient
  DEPENDPATH += $$PWD/SocketClient
  </code></pre>
  
  <p>EDIT: why I am getting downvotes? This is a legitimate problem I'm having</p>
  
  <p><img src="https://i.stack.imgur.com/JmXBj.jpg" alt="Image showing it recognizes and doesn&#39;t recognize simultaneously"></p>