Please see the link included below.
QPdfWriter in its current form only rasterizes content. There should be clickable links and such in generated documents. PhantomJS uses QPdfWriter internally, so Qt plus PhantomJS users are out in the cold.
they already have code:
This is a request to merge the code into Qt proper.
|For Gerrit Dashboard: QTBUG-44563|
|112842,14||Add support for drawing a hyperlink in QPdfEngine||dev||qt/qtbase||Status: MERGED||+2||0|
|112844,10||Render anchors as clickable links in PDF documents||dev||qt/qtwebkit||Status: ABANDONED||+1||0|
|112884,1||QPdfWriter does not output clickable links||dev||qt/qtbase||Status: ABANDONED||0||0|
|124658,3||Render anchors as clickable links in PDF documents||5.6||qt/qtwebkit||Status: MERGED||+2||0|