Feature request #10731

html formatted text boxes do not create links in pdf outputs

Added by Giovanni Manghi almost 10 years ago. Updated over 5 years ago.

Status:Open
Priority:Normal
Assignee:-
Category:Map Composer/Printing
Pull Request or Patch supplied:No Resolution:
Easy fix?:No Copied to github as #:19117

Description

Not sure if this is a feature request or a bug,

if I create a text box in a composer and add a tag

<a href="http://www.google.com/">link</a>

when outputting to PDF the link text is formatted as expected (blue, underlined), but the link does not work (maybe it does not exist as it is not clickable).

It does not depend on the platform (tested Linux and Windows) and also does not depend on how the PDF is created (the QGIS function or other virtual printer).

History

#1 Updated by Regis Haubourg over 9 years ago

Hi,
it seems there was a bug in QT 4.7 , solved in 4.8.. I guess we just have to wire that feature:
see [[http://stackoverflow.com/questions/24163671/wicked-pdf-export-html-links-as-plain-text]]

cheers
Régis

#2 Updated by Nyall Dawson over 8 years ago

  • Assignee deleted (Nyall Dawson)

#3 Updated by Patrick Valsecchi about 8 years ago

I doubt this is a bug fixed in Qt 4.7. The link in the previous comment points to post about wicked, not Qt and QGIS uses Qt to render PDFs.

This bug has been fixed in Qt5.6:
https://github.com/qtproject/qtwebkit/commit/62dd2add32c7c4d5d409d457c818ac88c952e7f6

Therefore we'll have to wait for the port to Qt5 to be done and we'll be able to close this issue.

#4 Updated by Giovanni Manghi almost 7 years ago

  • Easy fix? set to No

#5 Updated by Alain FERRATON over 5 years ago

it seems that the bug still exists in QGIS 3.3 master which uses Qt 5.9.2

#6 Updated by Giovanni Manghi over 5 years ago

  • Description updated (diff)

Alain FERRATON wrote:

it seems that the bug still exists in QGIS 3.3 master which uses Qt 5.9.2

unfortunately I confirm.

Also available in: Atom PDF