#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();
}
效果如下:
#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();
}