You could use QTextBrowser instead of QTextEdit and set openExternalLinks property to true.