hello.cpp
#include <qapplication.h>
#include <qlabel.h>
int main (int argc,char *argv[])
{
QApplication app(argc,argv);
QLabel *label=new QLabel("hello,qt!",0);
app.setMainWidget(label);
label->show();
return app.exec();
}
qmake -project
qmake hello.pro
make
hello.exe