I guess you could have adjusted QTextEdit::acceptRichText as well.