Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Why are parts of QTextCharFormat not implemented in QTextOdfWriter and when will they be?
QtWS25 Last Chance

Why are parts of QTextCharFormat not implemented in QTextOdfWriter and when will they be?

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 214 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    Folling
    wrote on last edited by Folling
    #1

    I am writing a QSyntaxHighlighter for a custom document in our software.
    That document needs to support both clickable anchors (i.e. href's to other documents), as well as tooltips for those anchors.

    I was delighted to see that QTextCharFormat already comes with a setTooltip and setAnchor method. Though using those didn't do anything. Scouring the QT source a bit, I found that those specific features aren't implemented in QOdfTextWriter(for which I cannot find a reference):
    9dde86b4-1b03-4b11-b1fb-acf4c004d266-image.png

    My questions now are:

    1. Is that a bug/forgotten thing?
    2. If it isn't, is there a plan for when those things are going to be implemented?
    3. If the answer to 2. isn't "very soon, dw" - how could I approach to implement these features myself?

    To elaborate on 3. we basically want to support the standard text-edit functionality:
    bold, italic, underlined, and strikethrough text, different font sizes, lists, table of contents, coloured text, aligned text, and the two special features I mentioned:

    1. Clickable links that we can connect a slot to linkClicked(QString link) which will also
    2. Display a tooltip when hovered.
    jsulmJ 1 Reply Last reply
    0
    • F Folling

      I am writing a QSyntaxHighlighter for a custom document in our software.
      That document needs to support both clickable anchors (i.e. href's to other documents), as well as tooltips for those anchors.

      I was delighted to see that QTextCharFormat already comes with a setTooltip and setAnchor method. Though using those didn't do anything. Scouring the QT source a bit, I found that those specific features aren't implemented in QOdfTextWriter(for which I cannot find a reference):
      9dde86b4-1b03-4b11-b1fb-acf4c004d266-image.png

      My questions now are:

      1. Is that a bug/forgotten thing?
      2. If it isn't, is there a plan for when those things are going to be implemented?
      3. If the answer to 2. isn't "very soon, dw" - how could I approach to implement these features myself?

      To elaborate on 3. we basically want to support the standard text-edit functionality:
      bold, italic, underlined, and strikethrough text, different font sizes, lists, table of contents, coloured text, aligned text, and the two special features I mentioned:

      1. Clickable links that we can connect a slot to linkClicked(QString link) which will also
      2. Display a tooltip when hovered.
      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Folling It would be better to ask this on Qt developers mailing list as this forum is more user oriented.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • F Offline
        F Offline
        Folling
        wrote on last edited by
        #3

        Ah, pardon me!
        I'll relay the question there!

        1 Reply Last reply
        1

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved