title: QGraphicsItem no such file
body: <p>There are 2 lib in project (<code>TEMPLATE = lib</code> in .pro file) lib1 and lib2.
  And before today lib1 depend on lib2:</p>
  
  <p><code>LIBS += -llib2</code> in lib1.pro</p>
  
  <p>also macros was defined and used in class i want to import</p>
  
  <p><code>#if defined(LIB2_BUILD)
   #define LIB2_EXPORT Q_DECL_EXPORT
   #else
   #define LIB2_EXPORT Q_DECL_IMPORT
   #endif</code></p>
  
  <p>all was fine, but now i need to use some class from lib1 in lib2.</p>
  
  <p>I done:</p>
  
  <p><code>LIBS += -llib1</code> in lib2.pro</p>
  
  <p>and define <code>EXPORT</code> masroc for second lib and use it for class wich I want to use in lib2.</p>
  
  <p>but when I add <code>#include "../lib1/header.h"</code> I get error</p>
  
  <p><code>error: QGraphicsItem: No such file or directory #include &lt;QGraphicsItem&gt;</code></p>
  
  <p>maybe I forget anything?
  sorry, if my description of problem is bad.</p>
  
  <p><strong>UPD</strong></p>
  
  <p>If I delete <code>#include "../lib1/header.h"</code> it compile and work.</p>
  
  <p><strong>UPD2</strong></p>
  
  <p>I found that I can't include <code>&lt;QGraphicsItem&gt;</code> in file from lib2 - same error.</p>
  
  <p>Now I have in .pro file <code>QT += core widgets gui</code>, but before I do this it was:</p>
  
  <p><code>QT += core widgets
   QT -= gui</code></p>
  
  <p>I run qmake and rebuild project. Nothing change.</p>
  
  <p><strong>SOLUTION</strong></p>
  
  <p>problem was in other libraries which use lib2 and didn't have <code>QT += gui</code></p>