title: Creating project file through terminal and compile failes but through Qt Creator IDE works fine
body: <p>I’m newbie, so please have patience with me.
  I’m using Ubuntu and I have installed Qt 5.1.0 from .run file. QtCreator 2.8 got installed also.
  I added these lines to my .bashrc file:</p>
  
  <pre><code>export QTDIR=/opt/Qt5.1.0/5.1.0/gcc
  export QMAKESPEC=$QTDIR/mkspecs/linux-g++
  export QT_PLUGIN_PATH=$QTDIR/plugins
  
  export PATH=$QTDIR/bin:$PATH
  export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
  </code></pre>
  
  <p>I tried to comile simple example application:</p>
  
  <pre><code>#include &lt;QApplication&gt;
  #include &lt;QLabel&gt;
  
  int main(int argc, char *argv[])
  {
   QApplication app(argc,argv);
   QLabel *label = new QLabel("Hello Qt!");
   label-&gt;show();
   return app.exec();
  }
  </code></pre>
  
  <p>I did “qmake -project”, and “qmake hello.pro”, and then I typed “make”.
  And that gives me error: “hello.cpp:1:24: fatal error: QApplication: No such file or directory
  compilation terminated.”</p>
  
  <p>The problem seems to be in qmake. When I make project with QtCreator it’s Makefile has different INCPATH variable, and this phase goes without problem (there are other problems but it’s another question).
  This is INCPATH variable in Makefile created through QtCreator:</p>
  
  <pre><code>“INCPATH = -I/opt/Qt5.1.0/5.1.0/gcc/mkspecs/linux-g++ -I../helloQtCreator -I/opt/Qt5.1.0/5.1.0/gcc/include -I/opt/Qt5.1.0/5.1.0/gcc/include/QtWidgets -I/opt/Qt5.1.0/5.1.0/gcc/include/QtGui -I/opt/Qt5.1.0/5.1.0/gcc/include/QtCore -I. -I. -I.”
  </code></pre>
  
  <p>And this one is created by qmake through terminal:</p>
  
  <pre><code>“INCPATH = -I/opt/Qt5.1.0/5.1.0/gcc/mkspecs/linux-g++ -I. -I. -I/opt/Qt5.1.0/5.1.0/gcc/include -I/opt/Qt5.1.0/5.1.0/gcc/include/QtGui -I/opt/Qt5.1.0/5.1.0/gcc/include/QtCore -I.”
  </code></pre>
  
  <p>Project names are different but why qmake doesn’t include
      “-I/opt/Qt5.1.0/5.1.0/gcc/include/QtWidgets”
  when started manualy from terminal?
  Adding this line to .pro file solves the problem temporary:</p>
  
  <pre><code>QT += widgets
  </code></pre>
  
  <p>But I don't want to do this manually every time.
  And how can I fix it?</p>
  
  <p>Thank you.</p>