QTEXTEDIT SUPERSCRIPT

ui->htmlTextEdit->currentCharFormat().setVerticalAlignment(QTextCharFormat::AlignSubScript);
Jittery Jaguar