#include<QApplication>
#include<QPushButton>
int main(int argc, char **argv)
{
QApplication app(argc,argv);
QPushButton * button =new QPushButton;
button->setText("hello Qt");
button->show();
return app.exec();
}
Step:
qmake –project
qmake
mingw32-make
cd debug
hello.exe