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();
}
原文地址:https://www.cnblogs.com/yechuang/p/4527704.html