Hello to all , I'm new in Qt . I have a small problem , today I have made the update to Qt 4.3.0 on my Linux box .
if I try to compile

Qt Code:
  1. #include <QApplication>
  2. #include <QPushButton>
  3.  
  4. int main(int argc, char *argv[])
  5. {
  6. QApplication app(argc, argv);
  7.  
  8. QPushButton hello("Hello world!");
  9. hello.resize(100, 30);
  10.  
  11. hello.show();
  12. return app.exec();
  13. }
To copy to clipboard, switch view to plain text mode 

Then I made .pro file using qmake -project and finally I made make file using qmake . Then it gave the following error :

Qt Code:
  1. g++ -c -pipe -Wall -W -O2 -D_REENTRANT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -DQT_TABLET_SUPPORT -I/usr/share/qt3/mkspecs/default -I. -I. -I/usr/include/qt3 -o hello.o hello.cpp
  2. hello.cpp:24:25: error: QApplication: Nessun file o directory
  3. hello.cpp:25:24: error: QPushButton: Nessun file o directory
  4. hello.cpp:36:3: warning: no newline at end of file
  5. hello.cpp: In function ‘int main(int, char**)’:
  6. hello.cpp:29: error: ‘QApplication’ was not declared in this scope
  7. hello.cpp:29: error: expected `;' before ‘app’
  8. hello.cpp:31: error: ‘QPushButton’ was not declared in this scope
  9. hello.cpp:31: error: expected `;' before ‘hello’
  10. hello.cpp:32: error: ‘hello’ was not declared in this scope
  11. hello.cpp:35: error: ‘app’ was not declared in this scope
  12. hello.cpp: At global scope:
  13. hello.cpp:27: warning: unused parameter ‘argc’
  14. hello.cpp:27: warning: unused parameter ‘argv’
  15. make: *** [hello.o] Error 1
To copy to clipboard, switch view to plain text mode 

I believe that I am an error of the path , you can help me to resolve and set the path on linux machine step to step.

sorry for my bad English ....