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