Hi,

I have found the answer.

1. In the messageBox the solution is simple:
Qt Code:
  1. QMessageBox::warning(0,QString("Upper<sub>lower</sub>"),"");
To copy to clipboard, switch view to plain text mode 

Analogically we can use the HTML tags in the QTextItem to format item text.

Maverick