QT练习1:QT中还可以支持HTML语言,比较好玩
#include <QApplication>
#include <QLabel>
int main(int argc, char *argv[])
{
QApplication app(argc,argv);
QLabel hello("<h2><i>hello</i> <font color=red>QT!</font></h2>",0);
hello.show();
return app.exec();
}
效果如下:

欢迎访问:wenhao.ink

浙公网安备 33010602011771号