Skip to content

Conversation

prodoelmit
Copy link
Contributor

@prodoelmit prodoelmit commented Sep 23, 2025

Resolves: #18055

Another take on #18055 (instead of #30003 ) with url processing moved to TextFragments' forming instead of doing it on each paint operation. Kinda messy, because we have a lot of direct operations with mutable String text in fragments.

  • I signed the CLA
  • The title of the PR describes the problem it addresses
  • Each commit's message describes its purpose and effects, and references the issue it resolves
  • If changes are extensive, there is a sequence of easily reviewable commits
  • The code in the PR follows the coding rules
  • There are no unnecessary changes
  • The code compiles and runs on my machine, preferably after each commit individually
  • I created a unit test or vtest to verify the changes I made (if applicable)

Implements writing URLs into PDF via wrapping text into QTextDocument
and using its ::drawContents method.

As of September 2025 it's the only known method to write URLs to PDF.
Moved all the rendering logic into QPainterProvider
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Be able to link clickable URLs in text (especially in exported PDFs)

1 participant