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

效果如下:


posted @ 2011-05-21 18:31  hnrainll  阅读(1049)  评论(1编辑  收藏  举报