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. How to hide underline when assigning link inside a Text element

How to hide underline when assigning link inside a Text element

Scheduled Pinned Locked Moved QML and Qt Quick
4 Posts 2 Posters 2.1k 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.
  • J Offline
    J Offline
    jiangcaiyang
    wrote on last edited by
    #1

    I don't want underline inside a link element.
    like that:
    !http://i1288.photobucket.com/albums/b485/jiangcaiyang/111_zps3b0e0cde.png!
    How to use Text type to hide these underline? Thanks.

    1 Reply Last reply
    0
    • p3c0P Offline
      p3c0P Offline
      p3c0
      Moderators
      wrote on last edited by
      #2

      Hi,

      You can customize the html <a > tag using style to hide the underline.
      Try the following,

      @
      Text {
      text: '<a href="http://www.qt-project.org" >Qt Project</a>'
      textFormat: Text.RichText
      }
      @

      157

      1 Reply Last reply
      0
      • p3c0P Offline
        p3c0P Offline
        p3c0
        Moderators
        wrote on last edited by
        #3

        There's style="text-decoration:none" just after the link href="http://www.qt-project.org". Don't know why it is not showing above.

        157

        1 Reply Last reply
        0
        • J Offline
          J Offline
          jiangcaiyang
          wrote on last edited by
          #4

          Thank you all.
          The problem has been resolved.

          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