How to write and build a QT app on Ubuntu
$ sudo apt-get install libqt4-dev
$ mkdir qthello
$ cd qthello
$ cat > hello.cpp
#include
#includeint main(int argc, char *argv[])
{
QApplication app(argc, argv);
QLabel hello("hello, world");
hello.show();
return app.exec();
}
$ qmake -project # makes a .pro file
$ qmake # makes a Makefile
$ make
$ ./qthello
More information here.