Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Rich Text Link Active Color
Forum Updated to NodeBB v4.3 + New Features

Rich Text Link Active Color

Scheduled Pinned Locked Moved QML and Qt Quick
1 Posts 1 Posters 1.0k Views 1 Watching
  • 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.
  • D Offline
    D Offline
    duncanc4
    wrote on last edited by
    #1

    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?

    @
    Text
    {
    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
    }
    @

    1 Reply Last reply
    0

    • Login

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