Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-141072

QML Text linkColor with RichText textFormat

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Not Evaluated Not Evaluated
    • None
    • 6.9.2
    • None

      The Qt docs for QML Text's linkColor state:

      This property works with the StyledText textFormat, but not with RichText. Link color in RichText can be specified by including CSS style tags in the text.

      I tried to set the color using QML palette.link and via QGuiApplication::setPalette() (see attached MWE).

      While the later works, setting the color in palette.link does not.

      Is this expected behavior? It would seem easier to just set the palette color in QML for QML Text instances.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            janmoeller Jan Möller
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes