The first gui program by Qt

#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

image

posted @ 2013-12-25 12:16  Android开发8585  阅读(179)  评论(0编辑  收藏  举报