如果不行
static const char * const message =
"<p><b>Qt Main Window Demo</b></p>"
"<p>This is a demonstration of the QMainWindow, QToolBar and "
"QDockWidget classes.</p>"
"<p>The tool bar and dock widgets can be dragged around and rearranged "
"using the mouse or via the menu.</p>"
"<p>Each dock widget contains a colored frame and a context "
"(right-click) menu.</p>"
QTextEdit *center = new QTextEdit(this);
center->setReadOnly(true);
center->setHtml(tr(message));
HTML语法你会吧
就这样简单,还是Trolltech有先见呀