To ensure that all the required tools are installed : $rpm qa qt-devel $rpm qa qt-demos $rpm qa qt-examples 1.HELLO WORLD PROGRAM mkdir qthello cd qthello gedit qthello.cpp Program:
Output: qmakeqt4 project qmakeqt4 make ./qthello
Reg. No : 50410104020 2.MENU AND TOOLBAR Program mkdir qtmenu cd qtmenu gedit mymenu.h
gedit mymenu.cpp
Reg. No : 50410104020
gedit main.cpp
Output: qmake-qt4 project qmake-qt4 make ./qtmenu
Reg. No : 50410104020
3. WINDOW WITH A BUTTON Program: mkdir qtbutton cd qtbutton gedit qtbutton.cpp
Output: qmake-qt4 project qmake-qt4 make ./qtbutton