#include <QApplication>
#include <QLabel>
int main(int argc, char* argv[])
{
QApplication a(argc, argv);
//QLabel* label = new QLabel("<b>hello</b> <i>world</i>");
QLabel* label = new QLabel("<h2>hello</h2> <font color=red><i>world</i></font>");
label->show();
return a.exec();
}
#include <QLabel>
int main(int argc, char* argv[])
{
QApplication a(argc, argv);
//QLabel* label = new QLabel("<b>hello</b> <i>world</i>");
QLabel* label = new QLabel("<h2>hello</h2> <font color=red><i>world</i></font>");
label->show();
return a.exec();
}