#include <QApplication>
#include <QtGui>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QLabel *label = new QLabel("Hello World Qt!");
label->show();
return app.exec();
}
Start a Terminal, type the commands:
$qmake -project
$qmake helloqt.pro
$make
and Run the output file:
$./helloqt