QT_StepByStep(1)--初体验hello world!

例程一:hello world!

     支持HTML语言解析。

#include <QtGui/QApplication>
#include<QLabel>
int main(int argc, char *argv[])
{
    QApplication app(argc,argv);
    QLabel *label=new QLabel("<h2><fontcolor='red'>hello</font>,world<h2> ");
    label->show();
    return app.exec();
}
posted @ 2015-05-25 14:00  不二侬  阅读(170)  评论(0编辑  收藏  举报