[Qt-interest] How to make hyperlink content read-only?

Lingfa Yang lingfa at brandeis.edu
Tue May 18 22:00:00 CEST 2010


Here is a brief HTML which contains a hyperlink:

<body>This is <a href="http://www.google.com/">GOOGLE</a> search page.</body>

Choose QTextEdit::setHtml(); text is editable, while,

choose QTextBrowser::setHtml(); text is read-only.

In Qt, is it possible to make the normal text editable, meanwhile, make the hyperlink content read-only?

Thanks in advance.



More information about the Qt-interest-old mailing list