I have a QTextEdit that I am inserting a hyperlink at the word under the cursor. However, when the anchor is inserted, the QTextEdit does not display the typical hyperlink (Colored and Underlined) but the HTML dump contains the correct anchor.

Qt Code:
  1. fmt.setAnchor( true );
  2. fmt.setAnchorHref( href );
  4. ui_textEdit->textCursor().mergeCharFormat( fmt );
  5. ui_textEdit->textCursor().mergeCurrrentCharFormat( fmt );
To copy to clipboard, switch view to plain text mode 

If I directly insert HTML code with the anchor at the text cursor, everything appears correctly in the text edit.