title: qt command line application compilation
body: <p>trying to compile this simple qt application </p>
  
  <pre><code>#include &lt;QApplication&gt;
  #include &lt;QPushButton&gt;
  
   int main(int argc, char *argv[])
   {
     QApplication app(argc, argv);
  
     QPushButton hello("Hello world!");
     hello.resize(100, 30);
  
     hello.show();
     return app.exec();
  }
  </code></pre>
  
  <p>trying to compile with </p>
  
  <pre><code> g++ -I /usr/local/Cellar/qt5/5.8.0_1/Frameworks/QtGui.framework/Headers -o example main.cpp -framework QtGui -framework QtCore
  </code></pre>
  
  <p>getting error </p>
  
  <pre><code> main.cpp:1:10: fatal error: 'QApplication' file not found
   #include &lt;QApplication&gt;
       ^
   1 error generated.
  </code></pre>
  
  <p>have checked existence of header file and that it is contained in dir </p>
  
  <pre><code> :Headers ali$ cd /usr/local/Cellar/qt5/5.8.0_1/Frameworks/QtGui.framework/
   $ ls
   Headers        QtGui       QtGui.prl   Resources   Versions
  </code></pre>
  
  <p>any suggestions as to where im going wrong </p>