[Qt-interest] HTML links inside QTextBrowser

Ferenc Stelcz ferenc at stelcz.hu
Tue Jun 16 18:29:31 CEST 2009


Álvaro Morais wrote:
> Hi!
> 
> How can I make HTML links inside QTextBrowser to open the default browser and 
> the default email client. 
> 
> Thanks.
> 
> Álvaro

Hi!

Call setOpenExternalLinks(true) in the ctor of your QTextBrowser instance for 
external links. This uses the QDesktopServices::openUrl method.

HTH

--
Ferenc Stelcz
Junior Software Engineer

Banyan Technologies LLC.


__________ Information from ESET Smart Security, version of virus signature database 4159 (20090616) __________

The message was checked by ESET Smart Security.

http://www.eset.com





More information about the Qt-interest-old mailing list