QT是支持html解析的。
什么意思呢,一段代码就明白了。
QLabel *label=newQLabel("<h2><fontcolor='red'>hello</font>,world!</h2>");
label->show();
运行后的结果看看是什么样子的:
当然,不止是QLabel这个类,其他的widget也是支持这中美化方式的。
QT是支持html解析的。
什么意思呢,一段代码就明白了。
QLabel *label=newQLabel("<h2><fontcolor='red'>hello</font>,world!</h2>");
label->show();
运行后的结果看看是什么样子的:
当然,不止是QLabel这个类,其他的widget也是支持这中美化方式的。