Hi ,

I wrote below by following a random site.

#include <QApplication>
#include <QWidget>

int main(int argc , char **argv)
{       QApplication app(argc , argv);
        QWidget window;
        window.setWindowTitle("Simple Example");

        return app.exec();
I have installed qt3-dev-tools and qt4-make on suggestion, using synaptic pakage manager , and i have not set any configuration paths for libraries or include files.
And i have done following

skl@skl:~/GUI/window$ ls
note w.cpp
skl@skl:~/GUI/window$ qmake -project
skl@skl:~/GUI/window$ ls
note w.cpp window.pro
skl@skl:~/GUI/window$ qmake window.pro
skl@skl:~/GUI/window$ ls
Makefile note w.cpp window.pro
skl@skl:~/GUI/window$ make
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I. -o w.o w.cpp
w.cpp:2:24: fatal error: QApplication: No such file or directory
compilation terminated.
make: *** [w.o] Error 1
Well , i checked for this, "-I/usr/share/qt4/mkspecs/linux-g++", and is present in the same location but , the others(-I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4) are not present in the same location as mentioned in the command.

I would like to know qt3-dev-tools and qt4-make are compatible to each other or am i missing something for compilation. If i am wrong in any order request you to let me know some references on latest qt tools for compilation.