title: (C++)Code:: blocks does not recognize QT4 classes
body: <p>So far I have worked in the console and a few days ago decided to try the QT GUI.
  I downloaded the QT SDK , install it, adjust the location of QT and
  set up the PATH Environment Variable -> per the instructions on the site.</p>
  
  <p>I opened a new Qt4 project in Code:: Blocks-in and it seemed that everything was OK.
  There is by default an example:</p>
  
  <pre><code>#include &lt;QApplication&gt;
  #include &lt;QFont&gt;
  #include &lt;QPushButton&gt;
  
  
  int main(int argc, char* argv[])
  {
      QApplication app(argc, argv);
  
      QPushButton quit("Quit");
  
      quit.resize(75, 30);
      quit.setFont(QFont("Times", 18, QFont::Bold));
  
      QObject::connect(&amp;quit, SIGNAL(clicked()), &amp;app, SLOT(quit()));
  
      quit.show();
  
      return app.exec();
  }
  </code></pre>
  
  <p>Started it an it was all OK.</p>
  
  <p>After that I went to a tutorial on the official site and there is a final example.
  Some kind of simple game.I have done copy-paste of all .h and .cpp files and then put
  them in current project to see how it works but then problems arise.</p>
  
  <p>Code::Blocks does not recognize some classes.
  For example ::  #include   QTimer : No such file or directory
                  #include    QRect  : No such file or directory</p>
  
  <p>I uninstall QT and re-installed and configured everything again but the problem does not go out.</p>
  
  <p>These classes are not working nor in the default example ::</p>
  
  <pre><code>#include &lt;QApplication&gt;
  #include &lt;QFont&gt;
  #include &lt;QPushButton&gt;
  #include &lt;QTimer&gt;     does not have real purpose , just for illustration
  
  int main(int argc, char* argv[])
  {
      QApplication app(argc, argv);
  
      QPushButton quit("Quit");
  
      quit.resize(75, 30);
      quit.setFont(QFont("Times", 18, QFont::Bold));
  
      QObject::connect(&amp;quit, SIGNAL(clicked()), &amp;app, SLOT(quit()));
  
      quit.show();
  
      return app.exec();
  }
  </code></pre>
  
  <p>ba\107\main.cpp|4|QTimer: No such file or directory|
  ||=== Build finished: 1 errors, 0 warnings ===|</p>
  
  <p>I dont now how much classes don work properly , this is just some of them.</p>
  
  <p>Not to reveal hot water for days on google looking for a solution, maybe for some of you
  , this is a bizarrely easy problem.</p>
  
  <p>Thanks</p>