例程一: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();
}