[Qt-interest] HTML links inside QTextBrowser
Álvaro Miguel Morais
alvarommorais at gmail.com
Tue Jun 16 18:35:18 CEST 2009
Thank you both for your quick answers.
--
Neither Emacs or Vi are my primary editors...
...and I'm not ashamed!!!
>2009/6/16 Eric Clark <eclark at ara.com>:
> Use the QDesktopServices::openUrl function. This function will open any URL in the appropriate default application, as long as it knows how.
>
> Eric
>
> -----Original Message-----
> From: qt-interest-bounces at trolltech.com [mailto:qt-interest-bounces at trolltech.com] On Behalf Of Álvaro Morais
> Sent: Tuesday, June 16, 2009 11:15 AM
> To: qt-interest at trolltech.com
> Subject: [Qt-interest] HTML links inside QTextBrowser
>
> Hi!
>
> How can I make HTML links inside QTextBrowser to open the default browser and
> the default email client.
>
> Thanks.
>
> Álvaro
> --
> Neither Emacs or Vi are my primary editors...
> ..and I'm not ashamed!!!
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>2009/6/16 Ferenc Stelcz <ferenc at stelcz.hu>
> Á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.
More information about the Qt-interest-old
mailing list