Rich Text Link Active Color

  • I am using the Text Qml item and am trying to style the link color when the link is pressed. I am using the below text with css, but only the link color is changed. Is this something that isn't supported, or is there a way to change the link active color?

    anchors.fill: parent
    color: "white"
    text: '<html><style type="text/css">a:link {color:green;}a:active {color:yellow;}</style><body>Sample text with a phone number: <a href="(805)-646-7482">(805)-646-7482</a></body></html>'
    textFormat: Text.RichText

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.