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();
}

浙公网安备 33010602011771号